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