diff --git a/frontend/src/routes/(logistics)/materialHelper/consumption/index.tsx b/frontend/src/routes/(logistics)/materialHelper/consumption/index.tsx index 57c3d5e..bcb56d2 100644 --- a/frontend/src/routes/(logistics)/materialHelper/consumption/index.tsx +++ b/frontend/src/routes/(logistics)/materialHelper/consumption/index.tsx @@ -1,5 +1,6 @@ import ConsumeMaterial from "@/components/logistics/materialHelper/consumption/ConsumeMaterial"; import PreformReturn from "@/components/logistics/materialHelper/consumption/MaterialReturn"; +import TransferToNextLot from "@/components/logistics/materialHelper/consumption/TransferToNextLot"; import { createFileRoute } from "@tanstack/react-router"; export const Route = createFileRoute( @@ -21,10 +22,18 @@ export const Route = createFileRoute( function RouteComponent() { const url: string = window.location.host.split(":")[0]; + const auth = localStorage.getItem("auth_token"); return ( -
- - {url === "localhost" && } +
+ {auth ? ( + <> + + {url === "localhost" && } + + + ) : ( + + )}
); }