apply collect card
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user