mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-24 23:32:19 +10:00
refactor: ponytail audit
This commit is contained in:
@@ -7,11 +7,11 @@ import { DashboardSidebar } from "./-components/sidebar";
|
||||
|
||||
export const Route = createFileRoute("/dashboard")({
|
||||
component: RouteComponent,
|
||||
beforeLoad: async ({ context }) => {
|
||||
beforeLoad: ({ context }) => {
|
||||
if (!context.session) throw redirect({ to: "/auth/login", replace: true });
|
||||
return { session: context.session };
|
||||
},
|
||||
loader: async () => {
|
||||
loader: () => {
|
||||
const sidebarState = getDashboardSidebarState();
|
||||
return { sidebarState };
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user