refactor: add _authed.tsx guard that checks the protected routes if the user is logged in
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
import { Settings } from "../../../../pages/Settings";
|
||||
|
||||
export const Route = createFileRoute("/app/_hiddenLayout/_authed/app-settings")(
|
||||
{
|
||||
component: RouteComponent,
|
||||
},
|
||||
);
|
||||
|
||||
function RouteComponent() {
|
||||
return <Settings />;
|
||||
}
|
||||
Reference in New Issue
Block a user