fix(transferlots): missed adding this
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import ConsumeMaterial from "@/components/logistics/materialHelper/consumption/ConsumeMaterial";
|
import ConsumeMaterial from "@/components/logistics/materialHelper/consumption/ConsumeMaterial";
|
||||||
import PreformReturn from "@/components/logistics/materialHelper/consumption/MaterialReturn";
|
import PreformReturn from "@/components/logistics/materialHelper/consumption/MaterialReturn";
|
||||||
|
import TransferToNextLot from "@/components/logistics/materialHelper/consumption/TransferToNextLot";
|
||||||
import { createFileRoute } from "@tanstack/react-router";
|
import { createFileRoute } from "@tanstack/react-router";
|
||||||
|
|
||||||
export const Route = createFileRoute(
|
export const Route = createFileRoute(
|
||||||
@@ -21,10 +22,18 @@ export const Route = createFileRoute(
|
|||||||
|
|
||||||
function RouteComponent() {
|
function RouteComponent() {
|
||||||
const url: string = window.location.host.split(":")[0];
|
const url: string = window.location.host.split(":")[0];
|
||||||
|
const auth = localStorage.getItem("auth_token");
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className="flex flex-wrap">
|
||||||
|
{auth ? (
|
||||||
|
<>
|
||||||
<ConsumeMaterial />
|
<ConsumeMaterial />
|
||||||
{url === "localhost" && <PreformReturn />}
|
{url === "localhost" && <PreformReturn />}
|
||||||
|
<TransferToNextLot />
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<TransferToNextLot />
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user