working on gift flow

This commit is contained in:
2025-10-20 00:57:07 +03:00
parent 6214e2c0f5
commit a131c9147a
19 changed files with 137 additions and 62 deletions

View File

@@ -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"),