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

@@ -11,6 +11,7 @@ import { useAppSelector } from "redux/hooks";
import { colors, ProBlack2, ProGray1 } from "ThemeConstants";
import { AddressSummary } from "../checkout/components/AddressSummary";
import styles from "./address.module.css";
import { OrderType } from "pages/checkout/hooks/types.ts";
export default function AddressPage() {
const { t } = useTranslation();
@@ -165,7 +166,7 @@ export default function AddressPage() {
to={`/${id}/menu?orderType=delivery`}
style={{ width: "100%" }}
onClick={() => {
localStorage.setItem("orderType", "delivery");
localStorage.setItem("orderType", OrderType.Delivery);
}}
>
<Button