fix(manage-validator): add left side folder

This commit is contained in:
RadoslavDimchev 2024-03-23 16:24:00 +02:00 committed by Emil Ivanichkov
parent 6677e3629b
commit ae9c70213e
23 changed files with 56 additions and 46 deletions

View File

@ -1,7 +1,7 @@
import { Stepper, Step } from 'react-form-stepper' import { Stepper, Step } from 'react-form-stepper'
import { useNavigate } from 'react-router-dom' import { useNavigate } from 'react-router-dom'
import { DepositStatusSteps, FORM_STEPS } from '../../constants' import { DepositStatusSteps, FORM_STEPS } from '../../../constants'
import { useWindowSize } from '../../hooks/useWindowSize' import { useWindowSize } from '../../../hooks/useWindowSize'
import styles from './DepositStepper.module.css' import styles from './DepositStepper.module.css'
type DepositStepperProps = { type DepositStepperProps = {
activeStep: number activeStep: number

View File

@ -2,7 +2,7 @@ import { Text as TextStat } from '@status-im/components'
import { Text, XStack } from 'tamagui' import { Text, XStack } from 'tamagui'
import { ExternalIcon } from '@status-im/icons' import { ExternalIcon } from '@status-im/icons'
import Icon from '../../components/General/Icon' import Icon from '../../../components/General/Icon'
const Footer = () => { const Footer = () => {
return ( return (
<XStack <XStack

View File

@ -1,5 +1,5 @@
import { XStack } from 'tamagui' import { XStack } from 'tamagui'
import Titles from '../../components/General/Titles' import Titles from '../../../components/General/Titles'
import { PopupIcon } from '@status-im/icons' import { PopupIcon } from '@status-im/icons'
const Header = () => { const Header = () => {
return ( return (

View File

@ -0,0 +1,37 @@
import { Stack, YStack } from 'tamagui'
import Header from './Header'
import ValidatorInfo from './ValidatorInfo'
import DepositStatus from './DepositStatus'
import ValidatorBalance from './ValidatorBalance'
import ValidatorDataCards from './ValidatorDataCards'
import ValidatorSettingsCards from './ValidatorSeettingsCards'
import ValidatorGraffiti from './ValidatorGraffiti'
import ValidatorDataTabs from './ManageValidatorTable/ValidatorDataTabs'
import Footer from './Footer'
const LeftManageSide = () => {
return (
<Stack
width={'50%'}
maxWidth="50%"
flexGrow={1}
space={'$2'}
style={{ borderRight: '1px solid #DCE0E5' }}
>
<Header />
<YStack backgroundColor="#F4F6FE" space={'$3'}>
<ValidatorInfo />
<DepositStatus />
<ValidatorBalance />
</YStack>
<ValidatorDataCards />
<ValidatorSettingsCards />
<ValidatorGraffiti />
<ValidatorDataTabs />
<Footer />
</Stack>
)
}
export default LeftManageSide

View File

@ -1,11 +1,11 @@
import { Stack } from 'tamagui' import { Stack } from 'tamagui'
import { MANAGE_VALIDATOR_TABS } from '../../../constants' import { MANAGE_VALIDATOR_TABS } from '../../../../constants'
import ValidatorTable from './ValidatorTable' import ValidatorTable from './ValidatorTable'
import { Tabs } from '@status-im/components' import { Tabs } from '@status-im/components'
import { useDispatch, useSelector } from 'react-redux' import { useDispatch, useSelector } from 'react-redux'
import { RootState } from '../../../redux/store' import { RootState } from '../../../../redux/store'
import { setCurrentTab } from '../../../redux/ManageValidatorTab/slice' import { setCurrentTab } from '../../../../redux/ManageValidatorTab/slice'
const ValidatorDataTabs = () => { const ValidatorDataTabs = () => {
const dispatch = useDispatch() const dispatch = useDispatch()

View File

@ -1,7 +1,7 @@
import { Text } from '@status-im/components' import { Text } from '@status-im/components'
import { useSelector } from 'react-redux' import { useSelector } from 'react-redux'
import { RootState } from '../../../redux/store' import { RootState } from '../../../../redux/store'
import { MANAGE_VALIDATOR_TABS_TABLE_DATA } from '../../../constants' import { MANAGE_VALIDATOR_TABS_TABLE_DATA } from '../../../../constants'
const ValidatorTableHeader = () => { const ValidatorTableHeader = () => {
const currentTab = useSelector( const currentTab = useSelector(

View File

@ -1,7 +1,7 @@
import { Text } from '@status-im/components' import { Text } from '@status-im/components'
import { RootState } from '../../../redux/store' import { RootState } from '../../../../redux/store'
import { useSelector } from 'react-redux' import { useSelector } from 'react-redux'
import { MANAGE_VALIDATOR_TABS_TABLE_DATA } from '../../../constants' import { MANAGE_VALIDATOR_TABS_TABLE_DATA } from '../../../../constants'
const ValidatorTableRow = () => { const ValidatorTableRow = () => {
const currentTab = useSelector( const currentTab = useSelector(

View File

@ -1,6 +1,6 @@
import { Text } from '@status-im/components' import { Text } from '@status-im/components'
import { Stack, XStack, YStack } from 'tamagui' import { Stack, XStack, YStack } from 'tamagui'
import Icon from '../../components/General/Icon' import Icon from '../../../components/General/Icon'
const ValidatorBalance = () => { const ValidatorBalance = () => {
return ( return (

View File

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

View File

@ -1,8 +1,8 @@
import { XStack, YStack } from 'tamagui' import { XStack, YStack } from 'tamagui'
import ValidatorNameAddress from '../../components/General/ValidatorNameAddress' import ValidatorNameAddress from '../../../components/General/ValidatorNameAddress'
import { Avatar, Text } from '@status-im/components' import { Avatar, Text } from '@status-im/components'
import { ChevronLeftIcon, ChevronRightIcon } from '@status-im/icons' import { ChevronLeftIcon, ChevronRightIcon } from '@status-im/icons'
import Icon from '../../components/General/Icon' import Icon from '../../../components/General/Icon'
const ValidatorInfo = () => { const ValidatorInfo = () => {
return ( return (
<XStack space={'$2'} padding="30px" justifyContent="space-between"> <XStack space={'$2'} padding="30px" justifyContent="space-between">

View File

@ -1,7 +1,7 @@
import { Stack, YStack } from 'tamagui' import { Stack, YStack } from 'tamagui'
import { Text } from '@status-im/components' import { Text } from '@status-im/components'
import Icon from '../../components/General/Icon' import Icon from '../../../components/General/Icon'
type ValidatorToolCardProps = { type ValidatorToolCardProps = {
name: string name: string

View File

@ -1,17 +1,8 @@
import { XStack, YStack } from 'tamagui' import { XStack } from 'tamagui'
import { Stack } from 'tamagui'
import LeftSidebar from '../../components/General/LeftSidebar/LeftSidebar' import LeftSidebar from '../../components/General/LeftSidebar/LeftSidebar'
import RightManageSettings from './RightManageSettings/RightManageSettings' import RightManageSettings from './RightManageSettings/RightManageSettings'
import ValidatorInfo from './ValidatorInfo' import LeftManageSide from './LeftManageSide/LeftManageSide'
import DepositStatus from './DepositStatus'
import Header from './Header'
import ValidatorBalance from './ValidatorBalance'
import ValidatorDataCards from './ValidatorDataCards'
import ValidatorDataTabs from './ManageValidatorTable/ValidatorDataTabs'
import ValidatorGraffiti from './ValidatorGraffiti'
import Footer from './Footer'
import ValidatorSettingsCards from './ValidatorSeettingsCards'
const ManageValidator = () => { const ManageValidator = () => {
return ( return (
@ -24,25 +15,7 @@ const ManageValidator = () => {
flexGrow: 1, flexGrow: 1,
}} }}
> >
<Stack <LeftManageSide />
width={'50%'}
maxWidth="50%"
flexGrow={1}
space={'$2'}
style={{ borderRight: '1px solid #DCE0E5' }}
>
<Header />
<YStack backgroundColor="#F4F6FE" space={'$3'}>
<ValidatorInfo />
<DepositStatus />
<ValidatorBalance />
</YStack>
<ValidatorDataCards />
<ValidatorSettingsCards />
<ValidatorGraffiti />
<ValidatorDataTabs />
<Footer />
</Stack>
<RightManageSettings /> <RightManageSettings />
</XStack> </XStack>
</XStack> </XStack>