Skip to content

Commit

Permalink
fix: add redirects properly
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanjoshi914 committed Jul 9, 2024
1 parent 5e6e0c6 commit 71d3eaf
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions frontend/src/routes.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Navigate } from "react-router-dom";
import AppLayout from "src/components/layouts/AppLayout";
import SettingsLayout from "src/components/layouts/SettingsLayout";
import TwoColumnFullScreenLayout from "src/components/layouts/TwoColumnFullScreenLayout";
import { DefaultRedirect } from "src/components/redirects/DefaultRedirect";
import { HomeRedirect } from "src/components/redirects/HomeRedirect";
Expand Down Expand Up @@ -105,22 +106,28 @@ const routes = [
handle: { crumb: () => "Settings" },
children: [
{
index: true,
element: <Settings />,
},
{
path: "change-unlock-password",
element: <ChangeUnlockPassword />,
handle: { crumb: () => "Unlock Password" },
},
{
path: "key-backup",
element: <BackupMnemonic />,
handle: { crumb: () => "Key Backup" },
},
{
path: "node-backup",
element: <BackupNode />,
path: "",
element: <SettingsLayout />,
children: [
{
index: true,
element: <Settings />,
},
{
path: "change-unlock-password",
element: <ChangeUnlockPassword />,
handle: { crumb: () => "Unlock Password" },
},
{
path: "key-backup",
element: <BackupMnemonic />,
handle: { crumb: () => "Key Backup" },
},
{
path: "node-backup",
element: <BackupNode />,
},
],
},
],
},
Expand Down

0 comments on commit 71d3eaf

Please sign in to comment.