feat(migration): moved material helper over

This commit is contained in:
2025-10-26 10:47:07 -05:00
parent f078cd6ceb
commit 1da7b145a9
10 changed files with 868 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
import { createFileRoute } from "@tanstack/react-router";
import ConsumeMaterial from "../../../-components/logistics/materialHelper/consumption/ConsumeMaterial";
import PreformReturn from "../../../-components/logistics/materialHelper/consumption/MaterialReturn";
import TransferToNextLot from "../../../-components/logistics/materialHelper/consumption/TransferToNextLot";
export const Route = createFileRoute(
"/_old/old/(logistics)/materialHelper/consumption/",
)({
component: RouteComponent,
head: () => ({
meta: [
{
name: "description",
content: "My App is a web application",
},
{
title: "LST - Logistics",
},
],
}),
});
function RouteComponent() {
const url: string = window.location.host.split(":")[0];
const auth = localStorage.getItem("auth_token");
return (
<div className="flex flex-wrap">
{auth ? (
<>
<ConsumeMaterial />
{url === "localhost" && <PreformReturn />}
<TransferToNextLot />
</>
) : (
<>
<ConsumeMaterial />
<TransferToNextLot />
</>
)}
</div>
);
}

View File

@@ -0,0 +1,25 @@
import { createFileRoute } from "@tanstack/react-router";
import MaterialHelperPage from "../../-components/logistics/materialHelper/materialHelperPage";
export const Route = createFileRoute("/_old/old/(logistics)/materialHelper/")({
component: RouteComponent,
head: () => ({
meta: [
{
name: "description",
content: "My App is a web application",
},
{
title: "LST - Logistics",
},
],
}),
});
function RouteComponent() {
return (
<div>
<MaterialHelperPage />
</div>
);
}