From 02a0163d603d1b76e98bc3fc9b0fae1d4af5d0fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorem=20Ju=C3=A1rez?= Date: Mon, 29 Jun 2026 12:33:49 -0600 Subject: [PATCH] Show dish thumbnail in split-bill subaccount line items Same fix as the regular cart: the split-bill subaccount rows showed only name + price + quantity. Render the dish photo as a thumbnail (MediaThumb, with the plate-icon fallback). --- src/components/public/SplitPanel.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/public/SplitPanel.tsx b/src/components/public/SplitPanel.tsx index 4dc98a0..0df6969 100644 --- a/src/components/public/SplitPanel.tsx +++ b/src/components/public/SplitPanel.tsx @@ -5,6 +5,7 @@ import { useLocale, useTranslations } from 'next-intl'; import type { Locale } from '@/i18n/config'; import type { SnapshotProduct } from '@/lib/types'; import { pickText } from '@/lib/text'; +import MediaThumb from './MediaThumb'; export type SplitSession = { id: string; name: string; table: number }; type CartLine = { product: SnapshotProduct; qty: number; note?: string }; @@ -185,6 +186,11 @@ export default function SplitPanel({ {cart.map((l) => (
+ a.order - b.order)[0]} + alt={pickText(l.product.name, locale)} + className="h-12 w-12 shrink-0 rounded-xl" + /> {pickText(l.product.name, locale)}