feat(advanced-dropdown): render link options
This commit is contained in:
parent
21830ac499
commit
dece33f33e
|
@ -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()}>
|
||||||
</Link>
|
<DropdownMenu.Item label={option} onSelect={onSelectDropdownItem} />
|
||||||
|
</Link>
|
||||||
|
))}
|
||||||
</DropdownMenu.Content>
|
</DropdownMenu.Content>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue