working on gift flow
This commit is contained in:
@@ -10,10 +10,9 @@ import { colors, ProGray1 } from "../../ThemeConstants";
|
||||
import ProInputCard from "../ProInputCard/ProInputCard";
|
||||
import styles from "./PaymentMethods.module.css";
|
||||
|
||||
|
||||
const PaymentMethods = () => {
|
||||
const { t } = useTranslation();
|
||||
const { paymentMethod } = useAppSelector(selectCart);
|
||||
const { paymentMethod, orderType } = useAppSelector(selectCart);
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
const options: {
|
||||
@@ -23,11 +22,15 @@ const PaymentMethods = () => {
|
||||
icon?: React.ReactNode;
|
||||
style?: React.CSSProperties;
|
||||
}[] = [
|
||||
{
|
||||
label: t("checkout.creditDebitCard"),
|
||||
value: "creditDebitCard",
|
||||
price: t("checkout.expiresIn") + ":12/26",
|
||||
},
|
||||
...(orderType !== "gift"
|
||||
? [
|
||||
{
|
||||
label: t("checkout.creditDebitCard"),
|
||||
value: "creditDebitCard",
|
||||
price: t("checkout.expiresIn") + ":12/26",
|
||||
},
|
||||
]
|
||||
: []),
|
||||
|
||||
{
|
||||
label: t("checkout.differentCard"),
|
||||
|
||||
Reference in New Issue
Block a user