feat: add text for no found validators

This commit is contained in:
RadoslavDimchev 2023-10-19 09:29:52 +03:00
parent 6958b862bf
commit d1f378cf30
1 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import { useDispatch } from 'react-redux'
import { setCountOfValidators } from '../../../../redux/RightSidebar/slice'
import ValidatorListItem from './ValidatorListItem'
import InputSearch from './SearchInput'
import { Text } from '@status-im/components'
type Validator = {
name: string
@ -53,6 +54,11 @@ const ValidatorsList = () => {
{filteredValidators.map(validator => (
<ValidatorListItem {...validator} />
))}
{filteredValidators.length === 0 && (
<Text size={13} weight={'semibold'}>
No validators found
</Text>
)}
</YStack>
</YStack>
)