cleared build issues
This commit is contained in:
parent
46a6714f26
commit
1e6eebd83b
@ -3,7 +3,7 @@ import DashBoardLayerOne from "@/components/DashBoardLayerOne";
|
|||||||
import FloorComponent from "@/components/floor-component/FloorComponent";
|
import FloorComponent from "@/components/floor-component/FloorComponent";
|
||||||
import MainComponent from "@/components/home/MainComponent";
|
import MainComponent from "@/components/home/MainComponent";
|
||||||
import MasterLayout from "@/masterLayout/MasterLayout";
|
import MasterLayout from "@/masterLayout/MasterLayout";
|
||||||
import { useEffect, useState } from "react";
|
import { Suspense, useEffect, useState } from "react";
|
||||||
import client from "@auth";
|
import client from "@auth";
|
||||||
import MenuItems from "@/components/menu-component/MenuItems";
|
import MenuItems from "@/components/menu-component/MenuItems";
|
||||||
import { useSearchParams } from 'next/navigation';
|
import { useSearchParams } from 'next/navigation';
|
||||||
@ -16,7 +16,7 @@ import Breadcrumb from "@/components/Breadcrumb";
|
|||||||
// "Wowdash NEXT JS is a developer-friendly, ready-to-use admin template designed for building attractive, scalable, and high-performing web applications.",
|
// "Wowdash NEXT JS is a developer-friendly, ready-to-use admin template designed for building attractive, scalable, and high-performing web applications.",
|
||||||
// };
|
// };
|
||||||
|
|
||||||
const MenuItemsPage = () => {
|
const MenuItemsPageInner = () => {
|
||||||
|
|
||||||
const searchParams = useSearchParams();
|
const searchParams = useSearchParams();
|
||||||
|
|
||||||
@ -50,11 +50,6 @@ const MenuItemsPage = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* MasterLayout */}
|
|
||||||
<MasterLayout>
|
|
||||||
{/* Breadcrumb */}
|
|
||||||
<Breadcrumb title='Menu Category' />
|
|
||||||
|
|
||||||
{
|
{
|
||||||
loading ? (
|
loading ? (
|
||||||
<PageLoader />
|
<PageLoader />
|
||||||
@ -64,14 +59,20 @@ const MenuItemsPage = () => {
|
|||||||
<MenuItems menuData={menuData} tableName={tableName} seats={seats} time={time} />
|
<MenuItems menuData={menuData} tableName={tableName} seats={seats} time={time} />
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</MasterLayout>
|
|
||||||
|
|
||||||
{/* Render your floor data here */}
|
|
||||||
{/* {floorData && (
|
|
||||||
<pre>{JSON.stringify(floorData, null, 2)}</pre>
|
|
||||||
)} */}
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const MenuItemsPage = (() => {
|
||||||
|
return (
|
||||||
|
<MasterLayout>
|
||||||
|
<Breadcrumb title="Menu Category" />
|
||||||
|
<Suspense fallback={<PageLoader />}>
|
||||||
|
<MenuItemsPageInner />
|
||||||
|
</Suspense>
|
||||||
|
</MasterLayout>
|
||||||
|
)
|
||||||
|
})
|
||||||
|
|
||||||
export default MenuItemsPage;
|
export default MenuItemsPage;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
"use client"
|
"use client"
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { Suspense, useEffect, useState } from "react";
|
||||||
import { useParams, useSearchParams } from "next/navigation";
|
import { useParams, useSearchParams } from "next/navigation";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import MasterLayout from "@/masterLayout/MasterLayout";
|
import MasterLayout from "@/masterLayout/MasterLayout";
|
||||||
@ -10,7 +10,7 @@ import PageLoader from "@/components/common-component/PageLoader";
|
|||||||
import PageNoData from "@/components/common-component/PageNoData";
|
import PageNoData from "@/components/common-component/PageNoData";
|
||||||
import Breadcrumb from "@/components/Breadcrumb";
|
import Breadcrumb from "@/components/Breadcrumb";
|
||||||
|
|
||||||
const MenuItemsCategory = () => {
|
const MenuItemsCategoryInner = () => {
|
||||||
const params = useParams();
|
const params = useParams();
|
||||||
// const menuName = params.name;
|
// const menuName = params.name;
|
||||||
|
|
||||||
@ -391,9 +391,7 @@ const MenuItemsCategory = () => {
|
|||||||
console.log("cartItem?.quantity", cartItem)
|
console.log("cartItem?.quantity", cartItem)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<MasterLayout>
|
<>
|
||||||
<Breadcrumb title={`Menu Items`} />
|
|
||||||
|
|
||||||
<div className="container-fluid" style={{ marginBottom: "100px" }}>
|
<div className="container-fluid" style={{ marginBottom: "100px" }}>
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -861,8 +859,19 @@ const MenuItemsCategory = () => {
|
|||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</MasterLayout >
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const MenuItemsCategory = (() => {
|
||||||
|
return (
|
||||||
|
<MasterLayout>
|
||||||
|
<Breadcrumb title="Menu Items" />
|
||||||
|
<Suspense fallback={<PageLoader />}>
|
||||||
|
<MenuItemsCategoryInner />
|
||||||
|
</Suspense>
|
||||||
|
</MasterLayout>
|
||||||
|
)
|
||||||
|
})
|
||||||
|
|
||||||
export default MenuItemsCategory;
|
export default MenuItemsCategory;
|
||||||
Loading…
x
Reference in New Issue
Block a user