This commit is contained in:
2025-11-15 22:29:15 +03:00
parent 6f2c75d32c
commit 40742d6087
5 changed files with 13 additions and 17 deletions

View File

@@ -376,5 +376,9 @@
"save": "حفظ", "save": "حفظ",
"location": "العنوان", "location": "العنوان",
"pickupTime": "توقيت الاستلام" "pickupTime": "توقيت الاستلام"
},
"validation": {
"phoneRequired": "رقم الهاتف مطلوب",
"invalidPhone": "رقم الهاتف غير صالح"
} }
} }

View File

@@ -388,5 +388,9 @@
"save": "save", "save": "save",
"location": "Location", "location": "Location",
"pickupTime": "Pickup time" "pickupTime": "Pickup time"
},
"validation": {
"phoneRequired": "Phone number is required",
"invalidPhone": "Invalid phone number"
} }
} }

View File

@@ -78,8 +78,8 @@ export function MapBottomSheet({
title={t("cart.selectLocation")} title={t("cart.selectLocation")}
showCloseButton={true} showCloseButton={true}
initialSnap={1} initialSnap={1}
height={"950px"} height={"755px"}
snapPoints={["950px"]} snapPoints={["755px"]}
> >
<div <div
style={{ style={{

View File

@@ -12,6 +12,7 @@ import { useAppSelector } from "redux/hooks";
import { colors, ProBlack2, ProGray1 } from "ThemeConstants"; import { colors, ProBlack2, ProGray1 } from "ThemeConstants";
import { AddressSummary } from "../checkout/components/AddressSummary"; import { AddressSummary } from "../checkout/components/AddressSummary";
import styles from "./address.module.css"; import styles from "./address.module.css";
import ProPhoneInput from "components/ProPhoneInput";
export default function AddressPage() { export default function AddressPage() {
const { t } = useTranslation(); const { t } = useTranslation();
@@ -120,19 +121,7 @@ export default function AddressPage() {
/> />
</Form.Item> </Form.Item>
<Form.Item <ProPhoneInput label={t("address.mobileNumber")} propName="phone" />
label={t("address.mobileNumber")}
name="phone"
rules={[{ required: true, message: "" }]}
>
<Input
placeholder={t("address.mobileNumber")}
style={{
fontSize: 14,
}}
autoFocus={false}
/>
</Form.Item>
<Form.Item <Form.Item
label={t("address.addressLabel")} label={t("address.addressLabel")}

View File

@@ -241,8 +241,7 @@ export default function CartMobileTabletLayout({
orderType === OrderType.ScheduledOrder) && <CarPlateCard />} orderType === OrderType.ScheduledOrder) && <CarPlateCard />}
{/* Estimate Time */} {/* Estimate Time */}
{(orderType === OrderType.Delivery || {(orderType === OrderType.Pickup ||
orderType === OrderType.Pickup ||
orderType === OrderType.ScheduledOrder) && <TimeEstimateCard />} orderType === OrderType.ScheduledOrder) && <TimeEstimateCard />}
{/* Collection Method */} {/* Collection Method */}