gift: enhance items flow

This commit is contained in:
2026-01-12 00:18:55 +03:00
parent 167b26e0b9
commit f988fd3a4e
6 changed files with 70 additions and 55 deletions

View File

@@ -44,13 +44,7 @@ export function MenuFooter() {
}}
>
<Link
to={
totalItems === 0
? "#"
: orderType === OrderType.Pay
? `/${subdomain}/pay`
: `/${subdomain}/cart`
}
to={totalItems === 0 ? "#" : `/${subdomain}/cart`}
onClick={(e) => {
if (totalItems === 0) {
e.preventDefault();
@@ -106,9 +100,7 @@ export function MenuFooter() {
margin: "0 10px",
}}
>
{orderType === OrderType.Pay
? t("menu.pay")
: t("menu.viewCart")}
{t("menu.viewCart")}
</ProText>
</Button>
<div