fix(left-manage-validator): separate into different folders

This commit is contained in:
RadoslavDimchev 2024-03-25 22:42:50 +02:00 committed by Emil Ivanichkov
parent f8816abb71
commit 345f978e1c
6 changed files with 8 additions and 6 deletions

View File

@ -4,8 +4,8 @@ import { InformationBox } from '@status-im/components'
import { CloseCircleIcon } from '@status-im/icons'
import Header from './Header'
import ValidatorDataCards from './ValidatorDataCards'
import ValidatorSettingsCards from './ValidatorSettingsCards'
import ValidatorDataCards from './ValidatorDataCards/ValidatorDataCards'
import ValidatorSettingsCards from './ValidatorSettingsCards/ValidatorSettingsCards'
import ValidatorGraffiti from './ValidatorGraffiti'
import ValidatorDataTabs from './ManageValidatorTable/ValidatorDataTabs'
import Footer from './Footer'

View File

@ -1,6 +1,7 @@
import { Text } from '@status-im/components'
import { XStack, YStack } from 'tamagui'
import Icon from '../../../components/General/Icon'
import Icon from '../../../../components/General/Icon'
type ValidatorDataCardProps = {
title: string

View File

@ -1,4 +1,5 @@
import { Stack } from 'tamagui'
import ValidatorDataCard from './ValidatorDataCard'
import ValidatorPeersCard from './ValidatorPeersCard'
@ -14,7 +15,7 @@ const ValidatorDataCards = () => {
padding: '0 30px',
}}
>
<ValidatorPeersCard title="Peers" value="67"></ValidatorPeersCard>
<ValidatorPeersCard title="Peers" value="67" />
<ValidatorDataCard title="Slots Behind" value={19} iconPath="ghost.png" />
<ValidatorDataCard
title="Blocks"

View File

@ -3,7 +3,7 @@ import { DisconnectIcon, AdvancedIcon, ExternalIcon } from '@status-im/icons'
import { useNavigate } from 'react-router-dom'
import { Stack, YStack } from 'tamagui'
import { CARD_TITLES } from '../../../constants'
import { CARD_TITLES } from '../../../../constants'
type CardTitle = (typeof CARD_TITLES)[number]

View File

@ -1,7 +1,7 @@
import { Stack } from 'tamagui'
import ValidatorSettingCard from './ValidatorSettingCard'
import { CARD_TITLES } from '../../../constants'
import { CARD_TITLES } from '../../../../constants'
const ValidatorSettingsCards = () => {
return (