diff --git a/src/index.css b/src/index.css index fe6269c..2dd1e87 100644 --- a/src/index.css +++ b/src/index.css @@ -1,8 +1,8 @@ /* Import Ant Design reset */ @import "antd/dist/reset.css"; -/* Import Nunito Sans from Google Fonts */ -@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap"); +/* Import Outfit from Google Fonts */ +@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap"); :root { --background: #f7f7f7; diff --git a/src/pages/checkout/page.tsx b/src/pages/checkout/page.tsx index 4589af5..83c3b8c 100644 --- a/src/pages/checkout/page.tsx +++ b/src/pages/checkout/page.tsx @@ -18,6 +18,7 @@ export default function CheckoutPage() { const { t } = useTranslation(); const [form] = Form.useForm(); const { phone, order, orderType } = useAppSelector(selectCart); + const { token } = useAppSelector((state) => state.auth); return ( <>
{t("checkout.title")} - + {!token && } {orderType === OrderType.ToRoom && ( { + const handleClick = (e: React.MouseEvent) => { + e.stopPropagation(); + e.preventDefault(); if (restaurant && !restaurant.isOpened) { message.warning(t("menu.restaurantIsClosed")); return; @@ -115,7 +117,9 @@ export function AddToCartButton({ item }: { item: Product }) { } }; - const handlePlusClick = () => { + const handlePlusClick = (e: React.MouseEvent) => { + e.stopPropagation(); + e.preventDefault(); if (restaurant && !restaurant.isOpened) { message.warning(t("menu.restaurantIsClosed")); return; @@ -163,9 +167,8 @@ export function AddToCartButton({ item }: { item: Product }) { position: "absolute", bottom: 3, [isRTL ? "left" : "right"]: 1, - backgroundColor: "var(--secondary-background)", + background: "#FAFAFA", borderRadius: 888, - opacity: 0.8, }} >