limit recent orders visibility to last 3
All checks were successful
Staging Build / build (push) Successful in 3m26s
All checks were successful
Staging Build / build (push) Successful in 3m26s
This commit is contained in:
@@ -96,7 +96,7 @@ export function AdminRecentOrders() {
|
|||||||
{orders.length === 0 ? (
|
{orders.length === 0 ? (
|
||||||
<p className="text-slate-500 text-sm italic text-center py-8">Noch keine Bestellungen</p>
|
<p className="text-slate-500 text-sm italic text-center py-8">Noch keine Bestellungen</p>
|
||||||
) : (
|
) : (
|
||||||
orders.slice(0, 5).map(order => {
|
orders.slice(0, 3).map(order => {
|
||||||
const isNew = newOrderIds.has(order.id)
|
const isNew = newOrderIds.has(order.id)
|
||||||
const customerName =
|
const customerName =
|
||||||
order.customer_data?.company_name ||
|
order.customer_data?.company_name ||
|
||||||
@@ -105,8 +105,7 @@ export function AdminRecentOrders() {
|
|||||||
return (
|
return (
|
||||||
<Link key={order.id} href="/admin/orders" className="block">
|
<Link key={order.id} href="/admin/orders" className="block">
|
||||||
<div
|
<div
|
||||||
className={`flex items-center gap-3 p-3 rounded-lg transition-all duration-500 ${
|
className={`flex items-center gap-3 p-3 rounded-lg transition-all duration-500 ${isNew
|
||||||
isNew
|
|
||||||
? 'bg-primary/10 border border-primary/30 shadow-[0_0_12px_rgba(59,130,246,0.2)]'
|
? 'bg-primary/10 border border-primary/30 shadow-[0_0_12px_rgba(59,130,246,0.2)]'
|
||||||
: 'bg-[#020617]/20 hover:bg-[#020617]/30 border border-white/5'
|
: 'bg-[#020617]/20 hover:bg-[#020617]/30 border border-white/5'
|
||||||
}`}
|
}`}
|
||||||
|
|||||||
Reference in New Issue
Block a user