cart refactor code
This commit is contained in:
@@ -1,24 +1,9 @@
|
||||
import { useEffect } from "react";
|
||||
|
||||
import CartDesktopLayout from "pages/cart/components/CartDesktopLayout.tsx";
|
||||
import i18n from "i18n/i18n.ts";
|
||||
import CartMobileTabletLayout from "pages/cart/components/CartMobileTabletLayout.tsx";
|
||||
import useBreakPoint from "hooks/useBreakPoint.ts";
|
||||
|
||||
// Function to get translated table names
|
||||
export const getTableOptions = () => [
|
||||
{ id: "1", name: i18n.t("table1") },
|
||||
{ id: "2", name: i18n.t("table2") },
|
||||
{ id: "3", name: i18n.t("table3") },
|
||||
{ id: "4", name: i18n.t("table4") },
|
||||
{ id: "5", name: i18n.t("table5") },
|
||||
{ id: "6", name: i18n.t("table6") },
|
||||
{ id: "7", name: i18n.t("table7") },
|
||||
{ id: "8", name: i18n.t("table8") },
|
||||
{ id: "9", name: i18n.t("table9") },
|
||||
{ id: "10", name: i18n.t("table10") },
|
||||
];
|
||||
|
||||
export default function CartPage() {
|
||||
const { isDesktop } = useBreakPoint();
|
||||
// Prevent keyboard from appearing automatically on mobile
|
||||
|
||||
Reference in New Issue
Block a user