pickup time: intial commit

This commit is contained in:
2026-01-06 22:41:50 +03:00
parent ad036d1e64
commit ebe9928091
9 changed files with 553 additions and 6 deletions

View File

@@ -18,10 +18,10 @@ import CouponCard from "pages/cart/components/CouponCard";
import BriefMenuCard from "./components/BriefMenuCard";
import CustomerInformationCard from "./components/CustomerInformationCard";
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";
import PickupTimeCard from "./components/pickupEstimate/TimeEstimateCard";
export default function CheckoutPage() {
const { t } = useTranslation();
@@ -48,7 +48,7 @@ export default function CheckoutPage() {
<Layout.Content className={styles.checkoutContainer}>
{orderType === OrderType.Pickup && <CollectWay />}
{(orderType === OrderType.Pickup ||
orderType === OrderType.ScheduledOrder) && <TimeEstimateCard />}
orderType === OrderType.ScheduledOrder) && <PickupTimeCard />}
{orderType === OrderType.Pickup && <CarCard />}
{orderType === OrderType.Gift && <GiftCard />}