MED-193: improve mobile design for cart tables

This commit is contained in:
Danel Kungla
2025-10-08 13:50:04 +03:00
parent 17e7a98534
commit 3a8d73e742
12 changed files with 362 additions and 127 deletions

View File

@@ -0,0 +1,29 @@
import React from 'react';
import { Trans } from '@kit/ui/makerkit/trans';
import { TableCell, TableHead, TableRow } from '@kit/ui/shadcn/table';
const MobileCartRow = ({
titleKey,
value,
}: {
titleKey?: string;
value?: string | number;
}) => (
<TableRow>
<TableHead className="h-2 font-bold">
<Trans i18nKey={titleKey} />
</TableHead>
<TableCell className="p-0 text-right">
<p
className="txt-medium-plus text-ui-fg-base"
data-testid="product-title"
>
{value}
</p>
</TableCell>
</TableRow>
);
export default MobileCartRow;