refactor: add _authed.tsx guard that checks the protected routes if the user is logged in

This commit is contained in:
2026-07-10 11:53:07 +02:00
parent 99246e3e3d
commit e2a7d2e560
12 changed files with 193 additions and 172 deletions
@@ -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 />;
}