fix(constants): rename cards titles
This commit is contained in:
parent
9ce082eb40
commit
8a2d145862
|
@ -210,7 +210,7 @@ export const VALIDATORS_DATA = [
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
// Manage Validator
|
// Manage Validator
|
||||||
export const CARD_TITLES = ['Exit', 'Migrate', 'Advanced']
|
export const VALIDATOR_SETTINGS_CARDS_TITLES = ['Exit', 'Migrate', 'Advanced']
|
||||||
|
|
||||||
export const MANAGE_VALIDATOR_TABS = [
|
export const MANAGE_VALIDATOR_TABS = [
|
||||||
'Overview',
|
'Overview',
|
||||||
|
|
|
@ -3,9 +3,9 @@ import { DisconnectIcon, AdvancedIcon, ExternalIcon } from '@status-im/icons'
|
||||||
import { useNavigate } from 'react-router-dom'
|
import { useNavigate } from 'react-router-dom'
|
||||||
import { Stack, YStack } from 'tamagui'
|
import { Stack, YStack } from 'tamagui'
|
||||||
|
|
||||||
import { CARD_TITLES } from '../../../../constants'
|
import { VALIDATOR_SETTINGS_CARDS_TITLES } from '../../../../constants'
|
||||||
|
|
||||||
type CardTitle = (typeof CARD_TITLES)[number]
|
type CardTitle = (typeof VALIDATOR_SETTINGS_CARDS_TITLES)[number]
|
||||||
|
|
||||||
type ValidatorSettingCardProps = {
|
type ValidatorSettingCardProps = {
|
||||||
title: CardTitle
|
title: CardTitle
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { Stack } from 'tamagui'
|
import { Stack } from 'tamagui'
|
||||||
|
|
||||||
import ValidatorSettingCard from './ValidatorSettingCard'
|
import ValidatorSettingCard from './ValidatorSettingCard'
|
||||||
import { CARD_TITLES } from '../../../../constants'
|
import { VALIDATOR_SETTINGS_CARDS_TITLES } from '../../../../constants'
|
||||||
|
|
||||||
const ValidatorSettingsCards = () => {
|
const ValidatorSettingsCards = () => {
|
||||||
return (
|
return (
|
||||||
|
@ -17,7 +17,7 @@ const ValidatorSettingsCards = () => {
|
||||||
paddingBottom: '20px',
|
paddingBottom: '20px',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{CARD_TITLES.map(title => (
|
{VALIDATOR_SETTINGS_CARDS_TITLES.map(title => (
|
||||||
<ValidatorSettingCard key={title} title={title} />
|
<ValidatorSettingCard key={title} title={title} />
|
||||||
))}
|
))}
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
Loading…
Reference in New Issue