feat(panels): use new panel wrapper

This commit is contained in:
RadoslavDimchev 2024-02-20 12:23:07 +02:00 committed by Emil Ivanichkov
parent c30a643b7b
commit c05b938ab6
2 changed files with 9 additions and 4 deletions

View File

@ -1,7 +1,11 @@
import { YStack } from 'tamagui' import PanelWrapper from './PanelWrapper'
const DepositPanel = () => { const DepositPanel = () => {
return <YStack></YStack> return (
<PanelWrapper>
<div>Deposit Funds</div>
</PanelWrapper>
)
} }
export default DepositPanel export default DepositPanel

View File

@ -3,12 +3,13 @@ import { CloseCircleIcon } from '@status-im/icons'
import { YStack } from 'tamagui' import { YStack } from 'tamagui'
import KeystoreBackupsCard from '../../../../ValidatorOnboarding/KeyGeneration/KeystoreFiles/KeystoreBackupsCard' import KeystoreBackupsCard from '../../../../ValidatorOnboarding/KeyGeneration/KeystoreFiles/KeystoreBackupsCard'
import PanelWrapper from './PanelWrapper'
const MigratePanel = () => { const MigratePanel = () => {
const migrateValidatorHandler = () => {} const migrateValidatorHandler = () => {}
return ( return (
<YStack space={'$2'} style={{ padding: '30px', alignItems: 'start' }}> <PanelWrapper>
<Text size={19} weight={'semibold'}> <Text size={19} weight={'semibold'}>
Migrate Validator Migrate Validator
</Text> </Text>
@ -36,7 +37,7 @@ const MigratePanel = () => {
icon={<CloseCircleIcon size={20} />} icon={<CloseCircleIcon size={20} />}
/> />
<Button onPress={migrateValidatorHandler}>Migrate Validator</Button> <Button onPress={migrateValidatorHandler}>Migrate Validator</Button>
</YStack> </PanelWrapper>
) )
} }