refactor the use of plain string order types
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user