limit recent orders visibility to last 5
All checks were successful
Staging Build / build (push) Successful in 3m29s
All checks were successful
Staging Build / build (push) Successful in 3m29s
This commit is contained in:
@@ -92,11 +92,11 @@ export function AdminRecentOrders() {
|
|||||||
Aktualisiert: {lastChecked.toLocaleTimeString('de-DE')}
|
Aktualisiert: {lastChecked.toLocaleTimeString('de-DE')}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="space-y-3">
|
<div className="space-y-3 max-h-96 overflow-y-auto">
|
||||||
{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.map(order => {
|
orders.slice(0, 5).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 ||
|
||||||
|
|||||||
Reference in New Issue
Block a user