fix(transferlots): missed adding this

This commit is contained in:
2025-08-21 05:14:03 -05:00
parent 73d38ba3fe
commit 846ac479b1

View File

@@ -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>
); );
} }