feat(helpercommand): helpercommand page
This commit is contained in:
28
frontend/src/routes/(logistics)/helperCommands/index.tsx
Normal file
28
frontend/src/routes/(logistics)/helperCommands/index.tsx
Normal file
@@ -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 (
|
||||||
|
<div>
|
||||||
|
<HelperPage />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user