count on pickup_type : "car" in the restaurant details, for change the service label name and adding car plate number
This commit is contained in:
@@ -44,6 +44,7 @@ export default function CartMobileTabletLayout({
|
||||
const { items, collectionMethod, orderType } = useAppSelector(selectCart);
|
||||
const { isRTL } = useAppSelector((state) => state.locale);
|
||||
const { subdomain } = useParams();
|
||||
const { pickup_type } = useAppSelector((state) => state.order.restaurant);
|
||||
const { isMobile, isTablet } = useBreakPoint();
|
||||
|
||||
const getResponsiveClass = () => (isTablet ? "tablet" : "mobile");
|
||||
@@ -237,7 +238,7 @@ export default function CartMobileTabletLayout({
|
||||
<CouponCard />
|
||||
|
||||
{/* Car Plate*/}
|
||||
{(orderType === OrderType.Pickup ||
|
||||
{((orderType === OrderType.Pickup && pickup_type === "car") ||
|
||||
orderType === OrderType.ScheduledOrder) && <CarPlateCard />}
|
||||
|
||||
{/* Estimate Time */}
|
||||
|
||||
@@ -36,6 +36,7 @@ export default function RestaurantServices() {
|
||||
is_booking_enabled,
|
||||
delivery,
|
||||
is_schedule_order_enabled,
|
||||
pickup_type,
|
||||
} = restaurant || {};
|
||||
|
||||
const services = [
|
||||
@@ -57,7 +58,7 @@ export default function RestaurantServices() {
|
||||
...((pickup && [
|
||||
{
|
||||
id: OrderType.Pickup,
|
||||
title: t("common.pickup"),
|
||||
title: pickup_type === "car" ? t("common.car") : t("common.pickup"),
|
||||
description: t("home.services.pickup"),
|
||||
icon: (
|
||||
<PickupIcon
|
||||
|
||||
Reference in New Issue
Block a user