hide menu footer if restaurant close
This commit is contained in:
@@ -84,4 +84,15 @@
|
|||||||
|
|
||||||
.itemDescriptionIcons svg {
|
.itemDescriptionIcons svg {
|
||||||
fill: inherit;
|
fill: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Badge positioning for RTL */
|
||||||
|
:global(.ant-app-rtl) .productLink :global(.ant-badge) :global(.ant-badge-count) {
|
||||||
|
right: auto !important;
|
||||||
|
left: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(.ant-app-ltr) .productLink :global(.ant-badge) :global(.ant-badge-count) {
|
||||||
|
right: 0px !important;
|
||||||
|
left: auto !important;
|
||||||
}
|
}
|
||||||
@@ -6,7 +6,6 @@ import { colors } from "ThemeConstants.ts";
|
|||||||
import { ItemDescriptionIcons } from "components/ItemDescriptionIcons/ItemDescriptionIcons.tsx";
|
import { ItemDescriptionIcons } from "components/ItemDescriptionIcons/ItemDescriptionIcons.tsx";
|
||||||
import { StarOutlined } from "@ant-design/icons";
|
import { StarOutlined } from "@ant-design/icons";
|
||||||
import ImageWithFallback from "components/ImageWithFallback";
|
import ImageWithFallback from "components/ImageWithFallback";
|
||||||
import { AddToCartButton } from "pages/menu/components/AddToCartButton/AddToCartButton.tsx";
|
|
||||||
import { Product } from "utils/types/appTypes.ts";
|
import { Product } from "utils/types/appTypes.ts";
|
||||||
import useBreakPoint from "hooks/useBreakPoint.ts";
|
import useBreakPoint from "hooks/useBreakPoint.ts";
|
||||||
import { useAppSelector } from "redux/hooks.ts";
|
import { useAppSelector } from "redux/hooks.ts";
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ function MenuPage() {
|
|||||||
</Space>
|
</Space>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<MenuFooter />
|
{restaurant && restaurant.isOpened && <MenuFooter />}
|
||||||
|
|
||||||
<ScrollEventHandler />
|
<ScrollEventHandler />
|
||||||
<FloatingButton />
|
<FloatingButton />
|
||||||
|
|||||||
Reference in New Issue
Block a user