{t("cart.totalAmount")}
diff --git a/src/components/PaymentMethods/PaymentMethods.module.css b/src/components/PaymentMethods/PaymentMethods.module.css
index 26fff27..13a97b5 100644
--- a/src/components/PaymentMethods/PaymentMethods.module.css
+++ b/src/components/PaymentMethods/PaymentMethods.module.css
@@ -27,4 +27,78 @@
top: 1px
}
+.eCardIcon {
+ position: relative;
+ top: 3px;
+ margin-right: 4px;
+}
+
+/* Make AntD checkbox look like a circular check indicator (scoped via CSS modules) */
+.circleCheckbox :global(.ant-checkbox-inner) {
+ width: 24px;
+ height: 24px;
+ border-radius: 50% !important;
+ border: 1.5px solid #D5D8DA;
+ background: transparent;
+}
+
+.circleCheckbox :global(.ant-checkbox-checked .ant-checkbox-inner) {
+ border-radius: 50% !important;
+ background: transparent;
+ border-color: #ffb700;
+}
+
+/* Replace AntD checkmark with a filled inner circle when checked (match SVG) */
+.circleCheckbox :global(.ant-checkbox-inner::after) {
+ content: "";
+ border: 0 !important;
+ transform: none !important;
+ width: 0;
+ height: 0;
+ left: 50%;
+ top: 50%;
+}
+
+.circleCheckbox :global(.ant-checkbox-checked .ant-checkbox-inner::after) {
+ width: 18px;
+ height: 18px;
+ margin-left: -9px;
+ margin-top: -9px;
+ border-radius: 50%;
+ background: #ffb700;
+}
+
+/* Apply same circular style to Radio buttons */
+.circleCheckbox :global(.ant-radio-inner) {
+ width: 24px;
+ height: 24px;
+ border-radius: 50% !important;
+ border: 1.5px solid #D5D8DA;
+ background: transparent;
+}
+
+.circleCheckbox :global(.ant-radio-checked .ant-radio-inner) {
+ border-radius: 50% !important;
+ background: transparent;
+ border-color: #ffb700;
+}
+
+.circleCheckbox :global(.ant-radio-inner::after) {
+ content: "";
+ border: 0 !important;
+ transform: none !important;
+ width: 0;
+ height: 0;
+ left: 50%;
+ top: 50%;
+}
+
+.circleCheckbox :global(.ant-radio-checked .ant-radio-inner::after) {
+ width: 18px;
+ height: 18px;
+ margin-left: -9px;
+ margin-top: -9px;
+ border-radius: 50%;
+ background: #ffb700;
+}
diff --git a/src/components/PaymentMethods/PaymentMethods.tsx b/src/components/PaymentMethods/PaymentMethods.tsx
index d0b1228..1b97846 100644
--- a/src/components/PaymentMethods/PaymentMethods.tsx
+++ b/src/components/PaymentMethods/PaymentMethods.tsx
@@ -14,15 +14,17 @@ import { colors, ProGray1 } from "../../ThemeConstants";
import ProInputCard from "../ProInputCard/ProInputCard";
import styles from "./PaymentMethods.module.css";
import { OrderType } from "pages/checkout/hooks/types.ts";
+import RCardIcon from "components/Icons/RCardIcon";
const PaymentMethods = () => {
const { t } = useTranslation();
const { paymentMethod, orderType } = useAppSelector(selectCart);
const dispatch = useAppDispatch();
const grandTotal = useAppSelector(selectGrandTotal);
+ const { isRTL } = useAppSelector((state) => state.locale);
const options: {
- label: string;
+ label: React.ReactNode;
value: string;
price?: string;
icon?: React.ReactNode;
@@ -32,23 +34,40 @@ const PaymentMethods = () => {
...(orderType !== OrderType.Gift
? [
{
- label: t("checkout.cash"),
+ label: (
+ <>
+
+ $
+
+ {t("checkout.cash")}
+ >
+ ),
value: "cash",
- price: grandTotal.toString(),
+ price: grandTotal.toFixed(2),
style: {
color: colors.primary,
},
},
]
: []),
- // {
- // label: t("checkout.creditDebitCard"),
- // value: "creditDebitCard",
- // price: t("checkout.expiresIn") + ":12/26",
- // hideCurrency: true,
- // },
+ // {
+ // label: t("checkout.creditDebitCard"),
+ // value: "creditDebitCard",
+ // price: t("checkout.expiresIn") + ":12/26",
+ // hideCurrency: true,
+ // },
{
- label: t("checkout.differentCard"),
+ label: (
+ <>
+
+ {t("checkout.differentCard")}
+ >
+ ),
value: "differentCard",
icon: (
@@ -56,7 +75,7 @@ const PaymentMethods = () => {
),
hideCurrency: true,
- }
+ },
// {
// label: t("checkout.fascanoWallet"),
// value: "fascanoWallet",
@@ -95,6 +114,7 @@ const PaymentMethods = () => {
key={option.value}
value={option.value}
onClick={() => onPaymentSelect(option.value)}
+ className={styles.circleCheckbox}
style={{
height: 48,
borderRadius: 888,
diff --git a/src/components/ProHeader/ProHeader.tsx b/src/components/ProHeader/ProHeader.tsx
index f20e774..9bd4f17 100644
--- a/src/components/ProHeader/ProHeader.tsx
+++ b/src/components/ProHeader/ProHeader.tsx
@@ -77,7 +77,20 @@ const ProHeader: FunctionComponent = ({
}}
{...other}
>
- {children}
+
+ {children}
+
@@ -96,7 +109,20 @@ const ProHeader: FunctionComponent