pickup time: intial commit
This commit is contained in:
@@ -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 />}
|
||||
|
||||
Reference in New Issue
Block a user