Cart: show variant label

This commit is contained in:
2025-11-11 15:47:07 +03:00
parent dc18d84ac8
commit 42a70affe2
4 changed files with 33 additions and 26 deletions

View File

@@ -42,6 +42,7 @@ export default function CartMobileTabletLayout({
}: CartMobileTabletLayoutProps) {
const { t } = useTranslation();
const { items, collectionMethod, orderType } = useAppSelector(selectCart);
const { isRTL } = useAppSelector((state) => state.locale);
const { subdomain } = useParams();
const { isMobile, isTablet } = useBreakPoint();
@@ -146,7 +147,16 @@ export default function CartMobileTabletLayout({
fontWeight: 600,
}}
>
{item.name}
{item.name}{" "}
<span
style={{
fontWeight: 400,
}}
>
{isRTL
? item.variant?.optionsAR[0].value
: item.variant?.options[0].value}
</span>
</ProText>
<br />
<ProText