ProBottomSheet: enhance UI

This commit is contained in:
2025-12-23 23:44:54 +03:00
parent 5c27303695
commit ee42afacf3
4 changed files with 71 additions and 28 deletions

View File

@@ -44,6 +44,11 @@ export default function ProductCard({ item, setIsBottomSheetOpen }: Props) {
// }
};
const hasOptions =
(item.extras && item.extras.length > 0) ||
(item.variants && item.variants.length > 0) ||
(item.theExtrasGroups && item.theExtrasGroups.length > 0);
return (
<>
<div
@@ -206,22 +211,24 @@ export default function ProductCard({ item, setIsBottomSheetOpen }: Props) {
</Badge>
</div>
</div>
<ProText
style={{
fontWeight: 400,
fontStyle: "Regular",
fontSize: "12px",
lineHeight: "140%",
letterSpacing: "0%",
textAlign: "center",
position: "absolute",
bottom: 19,
[isRTL ? "left" : "right"]: 26,
color: "#A4A3AA",
}}
>
{t("menu.customizable")}
</ProText>
{hasOptions && (
<ProText
style={{
fontWeight: 400,
fontStyle: "Regular",
fontSize: "12px",
lineHeight: "140%",
letterSpacing: "0%",
textAlign: "center",
position: "absolute",
bottom: 19,
[isRTL ? "left" : "right"]: 26,
color: "#A4A3AA",
}}
>
{t("menu.customizable")}
</ProText>
)}
</Card>
</div>