refactor the use of plain string order types

This commit is contained in:
2025-10-28 13:29:52 +03:00
parent 7aa686166b
commit 1abb63e8bd
16 changed files with 73 additions and 58 deletions

View File

@@ -13,6 +13,7 @@ import { useAppDispatch, useAppSelector } from "redux/hooks";
import { colors, ProGray1 } from "../../ThemeConstants";
import ProInputCard from "../ProInputCard/ProInputCard";
import styles from "./PaymentMethods.module.css";
import { OrderType } from "pages/checkout/hooks/types.ts";
const PaymentMethods = () => {
const { t } = useTranslation();
@@ -28,7 +29,7 @@ const PaymentMethods = () => {
style?: React.CSSProperties;
hideCurrency?: boolean;
}[] = [
...(orderType !== "gift"
...(orderType !== OrderType.Gift
? [
{
label: t("checkout.cash"),