Skip to content

Commit 612b133

Browse files
committed
Fix layouts to not have navbar on login/register.
1 parent 33cdcc8 commit 612b133

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

demos/react-supabase-todolist/src/app/router.tsx

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,23 @@ export const SQL_CONSOLE_ROUTE = '/sql-console';
1919
export const DEFAULT_ENTRY_ROUTE = '/views/todo-lists';
2020

2121
export const router = createBrowserRouter([
22+
{
23+
path: "/",
24+
element: <EntryPage />,
25+
},
26+
{
27+
path: LOGIN_ROUTE,
28+
element: <LoginPage />,
29+
},
30+
{
31+
path: REGISTER_ROUTE,
32+
element: <RegisterPage />,
33+
},
2234
{
2335
element: <ViewsLayout>
2436
<Outlet />
2537
</ViewsLayout>,
2638
children: [
27-
28-
{
29-
path: "/",
30-
element: <EntryPage />,
31-
},
32-
{
33-
path: LOGIN_ROUTE,
34-
element: <LoginPage />,
35-
},
36-
{
37-
path: REGISTER_ROUTE,
38-
element: <RegisterPage />,
39-
},
4039
{
4140
path: TODO_LISTS_ROUTE,
4241
element: <TodoListsPage />

0 commit comments

Comments
 (0)