feat(dm): added import and exports plus first custom for dayton
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import DmPage from "@/components/logistics/dm/dmPage";
|
||||
import { createFileRoute, redirect } from "@tanstack/react-router";
|
||||
|
||||
export const Route = createFileRoute("/(logistics)/dm/")({
|
||||
@@ -19,5 +20,9 @@ export const Route = createFileRoute("/(logistics)/dm/")({
|
||||
});
|
||||
|
||||
function RouteComponent() {
|
||||
return <div>Hello "/(logistics)/dm/"!</div>;
|
||||
return (
|
||||
<div>
|
||||
<DmPage />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ import { useSession } from "@/hooks/useSession";
|
||||
import { useLogout } from "@/hooks/useLogout";
|
||||
import ExportInventoryData from "@/components/logistics/warehouse/ExportInventoryData";
|
||||
import { AddCards } from "@/components/dashboard/AddCards";
|
||||
import DMButtons from "@/components/logistics/dm/DMButtons";
|
||||
//import { AddCards } from "@/components/dashboard/AddCards";
|
||||
|
||||
// same as the layout
|
||||
@@ -44,12 +45,19 @@ export const Route = createRootRoute({
|
||||
<ThemeProvider>
|
||||
<nav className="flex justify-end w-full shadow ">
|
||||
<div className="m-2 flex flex-row">
|
||||
{/* Inventory section */}
|
||||
{location.pathname === "/" && (
|
||||
<div className="m-auto pr-2 flex flex-row gap-2">
|
||||
<ExportInventoryData />
|
||||
<AddCards />
|
||||
</div>
|
||||
)}
|
||||
{/* Demand mgt section this should also include plant token stuff */}
|
||||
{location.pathname === "/dm" && (
|
||||
<div className="m-auto pr-2 flex flex-row gap-2">
|
||||
<DMButtons />
|
||||
</div>
|
||||
)}
|
||||
<div className="m-1">
|
||||
<ModeToggle />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user