fix: update validator request props

This commit is contained in:
RadoslavDimchev 2023-09-26 23:14:38 +03:00
parent 41b9df417d
commit 62c7defc0d
1 changed files with 5 additions and 8 deletions

View File

@ -4,13 +4,10 @@ import { XStack, YStack } from 'tamagui'
import { getFormattedValidatorAddress } from '../../../utilities' import { getFormattedValidatorAddress } from '../../../utilities'
type ValidatorRequestProps = { type ValidatorRequestProps = {
validator: { number: number
name: string
address: string
}
} }
const ValidatorRequest = ({ validator }: ValidatorRequestProps) => { const ValidatorRequest = ({ number }: ValidatorRequestProps) => {
return ( return (
<YStack space={'$3'} style={{ width: '100%' }}> <YStack space={'$3'} style={{ width: '100%' }}>
<XStack style={{ justifyContent: 'space-between', alignItems: 'center' }}> <XStack style={{ justifyContent: 'space-between', alignItems: 'center' }}>
@ -19,15 +16,15 @@ const ValidatorRequest = ({ validator }: ValidatorRequestProps) => {
type="user" type="user"
size={32} size={32}
src="/icons/validator-request.svg" src="/icons/validator-request.svg"
name={validator.name} name={number.toString()}
indicator="online" indicator="online"
/> />
<YStack> <YStack>
<Text size={13} weight={'semibold'}> <Text size={13} weight={'semibold'}>
Validator {validator.name} Validator {number}
</Text> </Text>
<Text size={13} color="#647084"> <Text size={13} color="#647084">
{getFormattedValidatorAddress(validator.address)} {getFormattedValidatorAddress('zQ3asdf9d4Gs0')}
</Text> </Text>
</YStack> </YStack>
</XStack> </XStack>