feat(migration): moved material helper over
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user