feat: add button with icon to set drop down position

This commit is contained in:
RadoslavDimchev 2023-09-26 21:19:18 +03:00
parent 6544a4ae13
commit e49875deb2
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import { DropdownMenu, Input, Text } from '@status-im/components' import { Button, DropdownMenu, Input, Text } from '@status-im/components'
import { AddIcon, ChevronDownIcon, EditIcon } from '@status-im/icons' import { AddIcon, ChevronDownIcon, EditIcon } from '@status-im/icons'
import { Stack, XStack, YStack } from 'tamagui' import { Stack, XStack, YStack } from 'tamagui'
@ -41,7 +41,11 @@ const Validators = ({
USD USD
</Text> </Text>
<DropdownMenu> <DropdownMenu>
<ChevronDownIcon size={16} color={'#919191'} style={{ cursor: 'pointer' }} /> <Button
variant="ghost"
size={24}
icon={<ChevronDownIcon size={16} color={'#919191'} />}
/>
<DropdownMenu.Content sideOffset={10} position="absolute" zIndex={999}> <DropdownMenu.Content sideOffset={10} position="absolute" zIndex={999}>
<DropdownMenu.Item <DropdownMenu.Item
icon={<EditIcon size={20} />} icon={<EditIcon size={20} />}