From 7769da2c2930a6f8e866a84bd29850bb563e614c Mon Sep 17 00:00:00 2001 From: Mohammed Al-yaseen Date: Tue, 18 Nov 2025 00:21:33 +0300 Subject: [PATCH] dark theme fixes --- src/assets/locals/ar.json | 3 +- src/assets/locals/en.json | 3 +- src/components/ArabicPrice/ArabicPrice.tsx | 10 ++--- .../CustomBottomSheet/GiftBottomSheet.tsx | 2 +- .../CustomBottomSheet/InfoButtonSheet.tsx | 2 +- .../CustomBottomSheet/MapBottomSheet.tsx | 3 +- .../CustomBottomSheet/OfficeBottomSheet.tsx | 11 ++--- .../CustomBottomSheet/RoomBottomSheet.tsx | 8 +++- src/components/Icons/InfoIcon.tsx | 2 +- src/components/Icons/order/InvoiceIcon.tsx | 2 +- src/components/Icons/order/TimeIcon.tsx | 2 +- .../InfoButton/InfoButton.module.css | 16 ++++--- src/components/InfoButton/InfoButton.tsx | 1 - src/components/OtpInput/OtpInput.tsx | 1 + src/components/ProPhoneInput.tsx | 45 +++++++++---------- src/index.css | 11 +++-- src/layouts/app/HeaderMenuDrawer.tsx | 5 ++- src/pages/cart/components/TableNumberCard.tsx | 6 +-- .../cart/components/cartFooter/CartFooter.tsx | 1 + src/pages/checkout/components/GiftDetails.tsx | 1 - 20 files changed, 75 insertions(+), 60 deletions(-) diff --git a/src/assets/locals/ar.json b/src/assets/locals/ar.json index de47b42..63cb0b6 100644 --- a/src/assets/locals/ar.json +++ b/src/assets/locals/ar.json @@ -251,7 +251,8 @@ "couponNotApplicable": "رمز القسيمة غير مطبق", "am": "ص", "pm": "م", - "cannotSelectPastDate": "لا يمكنك اختيار تاريخ سابق. يرجى اختيار اليوم أو تاريخ مستقبلي." + "cannotSelectPastDate": "لا يمكنك اختيار تاريخ سابق. يرجى اختيار اليوم أو تاريخ مستقبلي.", + "checkRequiredFields": "يرجى التحقق من الحقول المطلوبة" }, "checkout": { "title": "الدفع", diff --git a/src/assets/locals/en.json b/src/assets/locals/en.json index dd670fb..2848704 100644 --- a/src/assets/locals/en.json +++ b/src/assets/locals/en.json @@ -261,7 +261,8 @@ "couponNotApplicable": "Coupon not applicable", "am": "AM", "pm": "PM", - "cannotSelectPastDate": "You cannot select a past date. Please select today or a future date." + "cannotSelectPastDate": "You cannot select a past date. Please select today or a future date.", + "checkRequiredFields": "Please check required fields" }, "checkout": { "title": "Checkout", diff --git a/src/components/ArabicPrice/ArabicPrice.tsx b/src/components/ArabicPrice/ArabicPrice.tsx index 3d549e9..c0d6cc3 100644 --- a/src/components/ArabicPrice/ArabicPrice.tsx +++ b/src/components/ArabicPrice/ArabicPrice.tsx @@ -20,8 +20,7 @@ const ArabicPrice: React.FC = ({ hideCurrency = false, }) => { const { isRTL } = useAppSelector((state) => state.locale); - const {restaurant} = useAppSelector(state => state.order) - + const { restaurant } = useAppSelector((state) => state.order); // Format the price to ensure it has 2 decimal places const formattedPrice = typeof price === "number" ? price.toFixed(2) : price; @@ -38,7 +37,6 @@ const ArabicPrice: React.FC = ({ style={{ display: "inline-flex", alignItems: "baseline", - gap: "0.2em", lineHeight: 1, ...restStyle, }} @@ -54,6 +52,7 @@ const ArabicPrice: React.FC = ({ > {formattedPrice} + = ({ ...(decorationStyle ?? {}), }} > - {isRTL ? restaurant.local_currency : restaurant.global_currency} + {isRTL ? restaurant.local_currency : restaurant.global_currency} ) : !hideCurrency ? ( @@ -79,6 +78,7 @@ const ArabicPrice: React.FC = ({ > {formattedPrice} + = ({ }} > {isRTL ? restaurant.local_currency : restaurant.global_currency} - + ) : ( {formattedPrice} diff --git a/src/components/CustomBottomSheet/GiftBottomSheet.tsx b/src/components/CustomBottomSheet/GiftBottomSheet.tsx index d0983da..b98edd3 100644 --- a/src/components/CustomBottomSheet/GiftBottomSheet.tsx +++ b/src/components/CustomBottomSheet/GiftBottomSheet.tsx @@ -148,7 +148,7 @@ export function GiftBottomSheet({
- diff --git a/src/components/CustomBottomSheet/InfoButtonSheet.tsx b/src/components/CustomBottomSheet/InfoButtonSheet.tsx index 3582ba5..e39279e 100644 --- a/src/components/CustomBottomSheet/InfoButtonSheet.tsx +++ b/src/components/CustomBottomSheet/InfoButtonSheet.tsx @@ -50,7 +50,7 @@ export function InfoButtonSheet({ {description}
- diff --git a/src/components/CustomBottomSheet/MapBottomSheet.tsx b/src/components/CustomBottomSheet/MapBottomSheet.tsx index ac7e09a..59df802 100644 --- a/src/components/CustomBottomSheet/MapBottomSheet.tsx +++ b/src/components/CustomBottomSheet/MapBottomSheet.tsx @@ -121,8 +121,9 @@ export function MapBottomSheet({ {t("cart.cancel")}