diff --git a/src/pages/ManageValidator/LeftManage/ValidatorSettingCard.tsx b/src/pages/ManageValidator/LeftManage/ValidatorSettingCard.tsx index 17e1c655..b6bef270 100644 --- a/src/pages/ManageValidator/LeftManage/ValidatorSettingCard.tsx +++ b/src/pages/ManageValidator/LeftManage/ValidatorSettingCard.tsx @@ -1,6 +1,7 @@ import { Text } from '@status-im/components' import { DisconnectIcon, AdvancedIcon, ExternalIcon } from '@status-im/icons' -import { Stack, XStack, YStack } from 'tamagui' +import { Stack, YStack } from 'tamagui' + type IconKey = 'Exit Validator' | 'Migrate Validator' | 'Advanced' type ValidatorSettingCardProps = { @@ -9,11 +10,11 @@ type ValidatorSettingCardProps = { const ValidatorSettingCard = ({ title }: ValidatorSettingCardProps) => { const getIcon = { - 'Exit Validator': () => , - 'Migrate Validator': () => , - - Advanced: () => , + 'Exit Validator': , + 'Migrate Validator': , + Advanced: , } + return ( { width: 'fit-content', }} > - {getIcon[title]()} + {getIcon[title]} {title}