feat(advanced-dropdown): render link options

This commit is contained in:
RadoslavDimchev 2024-04-02 12:05:14 +03:00 committed by Radoslav Dimchev
parent 21830ac499
commit dece33f33e
1 changed files with 6 additions and 3 deletions

View File

@ -4,6 +4,7 @@ import { AdvancedIcon } from '@status-im/icons'
import { Link } from 'react-router-dom' import { Link } from 'react-router-dom'
import { CardTitle } from './ValidatorSettingCard' import { CardTitle } from './ValidatorSettingCard'
import { VALIDATOR_SETTING_ADVANCED_OPTIONS } from '../../../../constants'
type AdvancedDropdownMenuProps = { type AdvancedDropdownMenuProps = {
title: CardTitle title: CardTitle
@ -30,9 +31,11 @@ const AdvancedDropdownMenu = ({ title }: AdvancedDropdownMenuProps) => {
</Text> </Text>
</YStack> </YStack>
<DropdownMenu.Content> <DropdownMenu.Content>
<Link to="deposit"> {VALIDATOR_SETTING_ADVANCED_OPTIONS.map(option => (
<DropdownMenu.Item label="Deposit" onSelect={onSelectDropdownItem} /> <Link to={option.toLowerCase()}>
<DropdownMenu.Item label={option} onSelect={onSelectDropdownItem} />
</Link> </Link>
))}
</DropdownMenu.Content> </DropdownMenu.Content>
</DropdownMenu> </DropdownMenu>
) )