From f728190af91ca99fe5da77e61611b88d2e7f9586 Mon Sep 17 00:00:00 2001
From: Pavan Joshi <55848322+pavanjoshi914@users.noreply.github.com>
Date: Tue, 9 Jul 2024 17:25:00 +0530
Subject: [PATCH] fix: default redirect on settings route (#232)
* fix: default redirect on settings route
* fix: add redirects properly
---
frontend/src/routes.tsx | 40 +++++++++++++++++++++++-----------------
1 file changed, 23 insertions(+), 17 deletions(-)
diff --git a/frontend/src/routes.tsx b/frontend/src/routes.tsx
index 3f7d62ee..06cabff9 100644
--- a/frontend/src/routes.tsx
+++ b/frontend/src/routes.tsx
@@ -102,26 +102,32 @@ const routes = [
},
{
path: "settings",
- element: ,
+ element: ,
handle: { crumb: () => "Settings" },
children: [
{
- index: true,
- element: ,
- },
- {
- path: "change-unlock-password",
- element: ,
- handle: { crumb: () => "Unlock Password" },
- },
- {
- path: "key-backup",
- element: ,
- handle: { crumb: () => "Key Backup" },
- },
- {
- path: "node-backup",
- element: ,
+ path: "",
+ element: ,
+ children: [
+ {
+ index: true,
+ element: ,
+ },
+ {
+ path: "change-unlock-password",
+ element: ,
+ handle: { crumb: () => "Unlock Password" },
+ },
+ {
+ path: "key-backup",
+ element: ,
+ handle: { crumb: () => "Key Backup" },
+ },
+ {
+ path: "node-backup",
+ element: ,
+ },
+ ],
},
],
},