feat(management-tabs): show validator amount only on current tab

This commit is contained in:
RadoslavDimchev 2024-04-09 17:41:31 +03:00 committed by Emil Ivanichkov
parent 49862c397e
commit d3f11c29d0
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ const ManagementTabs = () => {
<Tabs.List size={32} variant="grey"> <Tabs.List size={32} variant="grey">
{VALIDATOR_TABS_MANAGEMENT.map(tab => ( {VALIDATOR_TABS_MANAGEMENT.map(tab => (
<Tabs.Trigger key={tab} type="default" value={tab}> <Tabs.Trigger key={tab} type="default" value={tab}>
{`${filteredValidators.length.toString()} ${tab}`} {`${currentTab === tab ? filteredValidators.length.toString() : ''} ${tab}`}
</Tabs.Trigger> </Tabs.Trigger>
))} ))}
</Tabs.List> </Tabs.List>