mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-09 11:11:59 +00:00
feat: create validator profile component
This commit is contained in:
parent
ebfc664ca7
commit
6481dbcdd8
33
src/components/General/ValidatorProfile.tsx
Normal file
33
src/components/General/ValidatorProfile.tsx
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
import { Avatar, Text } from '@status-im/components'
|
||||||
|
import { XStack, YStack } from 'tamagui'
|
||||||
|
|
||||||
|
import { getFormattedValidatorAddress } from '../../utilities'
|
||||||
|
|
||||||
|
type ValidatorProfileProps = {
|
||||||
|
number: number
|
||||||
|
address: string
|
||||||
|
}
|
||||||
|
|
||||||
|
const ValidatorProfile = ({ number, address }: ValidatorProfileProps) => {
|
||||||
|
return (
|
||||||
|
<XStack space={'$2'}>
|
||||||
|
<Avatar
|
||||||
|
type="user"
|
||||||
|
size={32}
|
||||||
|
src="/icons/validator-request.svg"
|
||||||
|
name={number.toString()}
|
||||||
|
indicator="online"
|
||||||
|
/>
|
||||||
|
<YStack>
|
||||||
|
<Text size={15} weight={'semibold'}>
|
||||||
|
Validator {number}
|
||||||
|
</Text>
|
||||||
|
<Text size={13} color="#647084">
|
||||||
|
{getFormattedValidatorAddress(address)}
|
||||||
|
</Text>
|
||||||
|
</YStack>
|
||||||
|
</XStack>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default ValidatorProfile
|
Loading…
x
Reference in New Issue
Block a user