From 4e3be2c56503e8a9f42d80832ae038aeeeb96170 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Fri, 2 May 2025 19:13:44 -0500 Subject: [PATCH] feat(helpercommand): helpercommand page --- .../(logistics)/helperCommands/index.tsx | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 frontend/src/routes/(logistics)/helperCommands/index.tsx diff --git a/frontend/src/routes/(logistics)/helperCommands/index.tsx b/frontend/src/routes/(logistics)/helperCommands/index.tsx new file mode 100644 index 0000000..5c78597 --- /dev/null +++ b/frontend/src/routes/(logistics)/helperCommands/index.tsx @@ -0,0 +1,28 @@ +import HelperPage from "@/components/logistics/helperCommands/helperPage"; +import { createFileRoute } from "@tanstack/react-router"; + +export const Route = createFileRoute("/(logistics)/helperCommands/")({ + component: RouteComponent, + // beforeLoad: async () => { + // const auth = localStorage.getItem("auth_token"); + // if (!auth) { + // throw redirect({ + // to: "/login", + // search: { + // // Use the current location to power a redirect after login + // // (Do not use `router.state.resolvedLocation` as it can + // // potentially lag behind the actual current location) + // redirect: location.pathname + location.search, + // }, + // }); + // } + // }, +}); + +function RouteComponent() { + return ( +
+ +
+ ); +}