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 ? (
|
||||
<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 customerName =
|
||||
order.customer_data?.company_name ||
|
||||
@@ -105,8 +105,7 @@ export function AdminRecentOrders() {
|
||||
return (
|
||||
<Link key={order.id} href="/admin/orders" className="block">
|
||||
<div
|
||||
className={`flex items-center gap-3 p-3 rounded-lg transition-all duration-500 ${
|
||||
isNew
|
||||
className={`flex items-center gap-3 p-3 rounded-lg transition-all duration-500 ${isNew
|
||||
? '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'
|
||||
}`}
|
||||
|
||||
Reference in New Issue
Block a user