mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* new ENV and page placeholder * display list data * comment out SearchInput * add counters * add tag to address page * tests * refactoring * fix ts * change ENVs for demo * fix ENVs validator * [skip ci] remove hash * review fixes
23 lines
569 B
TypeScript
23 lines
569 B
TypeScript
import { Box } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import type { Validator } from 'types/api/validators';
|
|
|
|
import ValidatorsListItem from './ValidatorsListItem';
|
|
|
|
const ValidatorsList = ({ data, isLoading }: { data: Array<Validator>; isLoading: boolean }) => {
|
|
return (
|
|
<Box>
|
|
{ data.map((item, index) => (
|
|
<ValidatorsListItem
|
|
key={ item.address.hash + (isLoading ? index : '') }
|
|
data={ item }
|
|
isLoading={ isLoading }
|
|
/>
|
|
)) }
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default React.memo(ValidatorsList);
|