feat(app): add sub urls for different panels
This commit is contained in:
parent
c72b6df587
commit
b5078be986
|
@ -35,6 +35,9 @@ import Activation from './pages/ValidatorOnboarding/Activation/Activation'
|
||||||
import ConfirmRecoveryPhrase from './pages/ValidatorOnboarding/KeyGeneration/ConfirmRecoveryPhrase/ConfirmRecoveryPhrase'
|
import ConfirmRecoveryPhrase from './pages/ValidatorOnboarding/KeyGeneration/ConfirmRecoveryPhrase/ConfirmRecoveryPhrase'
|
||||||
import Deposit from './pages/ValidatorOnboarding/Deposit/Deposit'
|
import Deposit from './pages/ValidatorOnboarding/Deposit/Deposit'
|
||||||
import DeviceHealthCheck from './pages/DeviceHealthCheck/DeviceHealthCheck'
|
import DeviceHealthCheck from './pages/DeviceHealthCheck/DeviceHealthCheck'
|
||||||
|
import ExitPanel from './pages/ManageValidator/RightManage/Panels/ExitPanel'
|
||||||
|
import MigratePanel from './pages/ManageValidator/RightManage/Panels/MigratePanel'
|
||||||
|
import DepositPanel from './pages/ManageValidator/RightManage/Panels/DepositPanel'
|
||||||
|
|
||||||
const injected = injectedModule()
|
const injected = injectedModule()
|
||||||
const walletConnect = walletConnectModule(wcV2InitOptions)
|
const walletConnect = walletConnectModule(wcV2InitOptions)
|
||||||
|
@ -106,6 +109,11 @@ const router = createBrowserRouter([
|
||||||
{
|
{
|
||||||
path: '/manage-validator/:validatorName',
|
path: '/manage-validator/:validatorName',
|
||||||
element: <ManageValidator />,
|
element: <ManageValidator />,
|
||||||
|
children: [
|
||||||
|
{ path: 'exit', element: <ExitPanel /> },
|
||||||
|
{ path: 'migrate', element: <MigratePanel /> },
|
||||||
|
{ path: 'deposit', element: <DepositPanel /> },
|
||||||
|
],
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue