fix: add keys to validators tabs
This commit is contained in:
parent
638063967a
commit
1b65aa0744
|
@ -31,14 +31,14 @@ const ValidatorsTabs = () => {
|
|||
<Stack style={{ cursor: 'pointer', width: 'fit-content' }}>
|
||||
<Tabs.List size={32}>
|
||||
{VALIDATOR_TABS.map(tab => (
|
||||
<Tabs.Trigger type="default" value={tab.value}>
|
||||
<Tabs.Trigger key={tab.value} type="default" value={tab.value}>
|
||||
{tab.label}
|
||||
</Tabs.Trigger>
|
||||
))}
|
||||
</Tabs.List>
|
||||
</Stack>
|
||||
{VALIDATOR_TABS.map(tab => (
|
||||
<Tabs.Content value={tab.value} style={{ marginTop: '8px' }}>
|
||||
<Tabs.Content key={tab.value} value={tab.value} style={{ marginTop: '8px' }}>
|
||||
{tab.children}
|
||||
</Tabs.Content>
|
||||
))}
|
||||
|
|
|
@ -33,6 +33,7 @@ const CPUCard = ({ load }: CPUCardProps) => {
|
|||
})),
|
||||
},
|
||||
]
|
||||
|
||||
const currentLoad =
|
||||
chartData[0].data.length > 0 ? chartData[0].data[chartData[0].data.length - 1].y : 0
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@ const MemoryCard = ({ currentMemory, maxMemory }: MemoryCardProps) => {
|
|||
maxValue: maxMemory,
|
||||
},
|
||||
]
|
||||
|
||||
const currentLoad =
|
||||
chartData[0].data.length > 0 ? chartData[0].data[chartData[0].data.length - 1].y : 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue