diff --git a/src/routes/_authenticated/_home/index.tsx b/src/routes/_authenticated/_home/index.tsx index 815a8d3..1e64248 100644 --- a/src/routes/_authenticated/_home/index.tsx +++ b/src/routes/_authenticated/_home/index.tsx @@ -1,9 +1,9 @@ -import { createFileRoute } from '@tanstack/react-router' +import { createFileRoute } from "@tanstack/react-router"; -export const Route = createFileRoute('/_authenticated/_home/')({ +export const Route = createFileRoute("/_authenticated/_home/")({ component: IndexRoute, -}) +}); function IndexRoute() { - return + return; } diff --git a/src/routes/_authenticated/_home/quests.index.tsx b/src/routes/_authenticated/_home/quests.index.tsx index 5a9fd07..08028ab 100644 --- a/src/routes/_authenticated/_home/quests.index.tsx +++ b/src/routes/_authenticated/_home/quests.index.tsx @@ -1,9 +1,9 @@ -import { createFileRoute, redirect } from '@tanstack/react-router' +import { createFileRoute, redirect } from "@tanstack/react-router"; -export const Route = createFileRoute('/_authenticated/_home/quests/')({ +export const Route = createFileRoute("/_authenticated/_home/quests/")({ beforeLoad: async () => { throw redirect({ - to: '/', - }) + to: "/", + }); }, -}) +});