Skip to content

Commit

Permalink
fix: default redirect on settings route (#232)
Browse files Browse the repository at this point in the history
* fix: default redirect on settings route

* fix: add redirects properly
  • Loading branch information
pavanjoshi914 authored Jul 9, 2024
1 parent e401a1e commit f728190
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions frontend/src/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,26 +102,32 @@ const routes = [
},
{
path: "settings",
element: <SettingsLayout />,
element: <DefaultRedirect />,
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 f728190

Please sign in to comment.