apply collect card

This commit is contained in:
2026-01-06 20:56:41 +03:00
parent 14c36518cc
commit ad036d1e64
5 changed files with 109 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import { Form, Layout } from "antd";
import { Flex, Form, Layout } from "antd";
import InputCard from "components/InputCard";
import OrderSummary from "components/OrderSummary/OrderSummary";
import PaymentMethods from "components/PaymentMethods/PaymentMethods";
@@ -21,6 +21,7 @@ import Ads1 from "components/Ads/Ads1";
import TimeEstimateCard from "pages/cart/components/timeEstimate/TimeEstimateCard";
import { useEffect } from "react";
import { CarCard } from "./components/CarCard";
import { CollectWay } from "./components/CollectWay/CollectWay";
export default function CheckoutPage() {
const { t } = useTranslation();
@@ -45,8 +46,10 @@ export default function CheckoutPage() {
<Layout>
<ProHeader>{t("checkout.title")}</ProHeader>
<Layout.Content className={styles.checkoutContainer}>
{orderType === OrderType.Pickup && <CollectWay />}
{(orderType === OrderType.Pickup ||
orderType === OrderType.ScheduledOrder) && <TimeEstimateCard />}
{orderType === OrderType.Pickup && <CarCard />}
{orderType === OrderType.Gift && <GiftCard />}
<PaymentMethods />