diff --git a/src/App.tsx b/src/App.tsx index 49ffe7f8..a1d90c55 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -25,7 +25,7 @@ import { apiKey, PATHS, VALIDATOR_ONBOARDING_SUB_PATHS, - MANAGE_VALIDATOR_SUB_PATHS, + VALIDATOR_MANAGEMENT, } from './constants' import './App.css' @@ -139,10 +139,10 @@ const router = createBrowserRouter([ path: `${PATHS.VALIDATOR_MANAGEMENT}/:validatorName`, element: , children: [ - { path: MANAGE_VALIDATOR_SUB_PATHS.DEFAULT, element: }, - { path: MANAGE_VALIDATOR_SUB_PATHS.EXIT, element: }, - { path: MANAGE_VALIDATOR_SUB_PATHS.MIGRATE, element: }, - { path: MANAGE_VALIDATOR_SUB_PATHS.DEPOSIT, element: }, + { path: VALIDATOR_MANAGEMENT.DEFAULT, element: }, + { path: VALIDATOR_MANAGEMENT.EXIT, element: }, + { path: VALIDATOR_MANAGEMENT.MIGRATE, element: }, + { path: VALIDATOR_MANAGEMENT.DEPOSIT, element: }, ], }, ]) diff --git a/src/components/General/Breadcrumb/Breadcrumb.tsx b/src/components/General/Breadcrumb/Breadcrumb.tsx index fed55465..275a490d 100644 --- a/src/components/General/Breadcrumb/Breadcrumb.tsx +++ b/src/components/General/Breadcrumb/Breadcrumb.tsx @@ -3,7 +3,7 @@ import useBreadcrumbs, { BreadcrumbsRoute } from 'use-react-router-breadcrumbs' import { PATHS, VALIDATOR_ONBOARDING_SUB_PATHS, - MANAGE_VALIDATOR_SUB_PATHS, + VALIDATOR_MANAGEMENT, } from '../../../constants' import BreadcrumbElement from './BreadcrumbElement' @@ -37,15 +37,15 @@ const routes = [ path: `${PATHS.VALIDATOR_MANAGEMENT}/:validatorName`, children: [ { - path: MANAGE_VALIDATOR_SUB_PATHS.DEFAULT, + path: VALIDATOR_MANAGEMENT.DEFAULT, breadcrumb: 'Manage Validator', }, - { path: MANAGE_VALIDATOR_SUB_PATHS.EXIT }, + { path: VALIDATOR_MANAGEMENT.EXIT }, { - path: MANAGE_VALIDATOR_SUB_PATHS.MIGRATE, + path: VALIDATOR_MANAGEMENT.MIGRATE, }, { - path: MANAGE_VALIDATOR_SUB_PATHS.DEPOSIT, + path: VALIDATOR_MANAGEMENT.DEPOSIT, }, ], }, diff --git a/src/constants.ts b/src/constants.ts index 45e463a3..25aa494f 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -28,7 +28,6 @@ export const PATHS = { DASHBOARD: '/dashboard', LOGS: '/logs', VALIDATOR_MANAGEMENT: '/validator-management', - MANAGE_VALIDATOR: '/manage-validator', } export const VALIDATOR_ONBOARDING_SUB_PATHS = { @@ -45,7 +44,7 @@ export const VALIDATOR_ONBOARDING_SUB_PATHS = { ACTIVATION: 'activation', } -export const MANAGE_VALIDATOR_SUB_PATHS = { +export const VALIDATOR_MANAGEMENT = { DEFAULT: '', EXIT: 'exit', MIGRATE: 'migrate',