diff --git a/src/pages/ValidatorManagement/ManagementTabs.tsx b/src/pages/ValidatorManagement/ManagementTabs.tsx index 232c6ec8..43726681 100644 --- a/src/pages/ValidatorManagement/ManagementTabs.tsx +++ b/src/pages/ValidatorManagement/ManagementTabs.tsx @@ -1,48 +1,24 @@ -import { useMemo } from 'react' import { Tabs } from '@status-im/components' import { Stack } from 'tamagui' import ManagementTable from './ManagementTable/ManagementTable' +import { VALIDATOR_TABS } from '../../constants' const ManagementTabs = () => { - const VALIDATOR_TABS = useMemo( - () => [ - { - value: 'Active', - }, - { - value: 'Pending', - }, - { - value: 'Inactive', - }, - { - value: 'Exited', - }, - { - value: 'Withdraw', - }, - { - value: 'All', - }, - ], - [], - ) - return ( - + {VALIDATOR_TABS.map(tab => ( - - {tab.value} + + {tab} ))} {VALIDATOR_TABS.map(tab => ( - - + + ))}