feat(management-tabs): show validator amount only on current tab
This commit is contained in:
parent
49862c397e
commit
d3f11c29d0
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue