apply "thawani" way payment
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Form, Radio, Space } from "antd";
|
||||
import { Form, Image, Radio, Space } from "antd";
|
||||
import { Group } from "antd/es/radio";
|
||||
import ArabicPrice from "components/ArabicPrice";
|
||||
import DifferentCardIcon from "components/Icons/paymentMethods/DifferentCardIcon";
|
||||
// import DifferentCardIcon from "components/Icons/paymentMethods/DifferentCardIcon";
|
||||
import ProText from "components/ProText";
|
||||
import {
|
||||
selectCart,
|
||||
@@ -14,7 +14,6 @@ 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";
|
||||
import { formatPriceUi } from "utils/helpers";
|
||||
|
||||
const PaymentMethods = () => {
|
||||
@@ -22,7 +21,7 @@ const PaymentMethods = () => {
|
||||
const { paymentMethod, orderType } = useAppSelector(selectCart);
|
||||
const dispatch = useAppDispatch();
|
||||
const grandTotal = useAppSelector(selectGrandTotal);
|
||||
const { isRTL } = useAppSelector((state) => state.locale);
|
||||
// const { isRTL } = useAppSelector((state) => state.locale);
|
||||
|
||||
const options: {
|
||||
label: React.ReactNode;
|
||||
@@ -40,12 +39,14 @@ const PaymentMethods = () => {
|
||||
<ProText
|
||||
style={{
|
||||
color: "#E8B400",
|
||||
[isRTL ? "marginLeft" : "marginRight"]: 4,
|
||||
// [isRTL ? "marginLeft" : "marginRight"]: 4,
|
||||
}}
|
||||
>
|
||||
$
|
||||
{/* $ */}
|
||||
</ProText>
|
||||
<ProText style={{ color: "#5F6C7B" }}>
|
||||
{t("checkout.cash")}
|
||||
</ProText>
|
||||
<ProText style={{color: '#5F6C7B'}}>{t("checkout.cash")}</ProText>
|
||||
</>
|
||||
),
|
||||
value: "cash",
|
||||
@@ -65,14 +66,26 @@ const PaymentMethods = () => {
|
||||
{
|
||||
label: (
|
||||
<>
|
||||
<RCardIcon className={styles.eCardIcon} />
|
||||
<ProText style={{color: '#5F6C7B'}}>{t("checkout.differentCard")}</ProText>
|
||||
{/* <RCardIcon className={styles.eCardIcon} /> */}
|
||||
<ProText style={{ color: "#5F6C7B" }}>
|
||||
{t("checkout.thawani")}
|
||||
</ProText>
|
||||
</>
|
||||
),
|
||||
value: "differentCard",
|
||||
value: "thawani",
|
||||
icon: (
|
||||
<div className={styles.differentCardIcon}>
|
||||
<DifferentCardIcon />
|
||||
<Image
|
||||
preview={false}
|
||||
src={"thawani.png"}
|
||||
alt="thawani"
|
||||
width={24}
|
||||
height={24}
|
||||
style={{
|
||||
position: "relative",
|
||||
bottom: 3,
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
),
|
||||
hideCurrency: true,
|
||||
|
||||
Reference in New Issue
Block a user