Remove warnings
This commit is contained in:
parent
a0a3c2561d
commit
6a98e04e89
|
@ -1,4 +1,4 @@
|
||||||
import React, { useState, useEffect } from 'react'
|
import { useState, useEffect } from 'react'
|
||||||
import { XStack, Stack, YStack } from 'tamagui'
|
import { XStack, Stack, YStack } from 'tamagui'
|
||||||
import { Text } from '@status-im/components'
|
import { Text } from '@status-im/components'
|
||||||
import Confetti from 'react-confetti'
|
import Confetti from 'react-confetti'
|
||||||
|
@ -19,8 +19,8 @@ const Activation = () => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack width={'100%'}>
|
<Stack width={'100%'}>
|
||||||
{showConfetti && <Confetti width={1000} height={800} style={{ zIndex: 0 }} />}
|
|
||||||
<YStack style={{ padding: '16px 32px' }}>
|
<YStack style={{ padding: '16px 32px' }}>
|
||||||
|
{showConfetti && <Confetti width={1540} height={800} style={{ zIndex: 0 }} />}
|
||||||
<YStack space={'$5'}>
|
<YStack space={'$5'}>
|
||||||
<Text size={27} weight={'semibold'}>
|
<Text size={27} weight={'semibold'}>
|
||||||
Validator Setup
|
Validator Setup
|
||||||
|
@ -32,8 +32,21 @@ const Activation = () => {
|
||||||
<YStack space={'$2'} marginTop={'10px'} width={'33%'}>
|
<YStack space={'$2'} marginTop={'10px'} width={'33%'}>
|
||||||
<XStack space={'$2'} justifyContent={'space-between'}>
|
<XStack space={'$2'} justifyContent={'space-between'}>
|
||||||
<ActivationCard text="Validators" value="4" />
|
<ActivationCard text="Validators" value="4" />
|
||||||
<ActivationCard text="Execution Sync Status" value="" isGaugeIncluded={true} gaugeSynced={135324} gaugeTotal={200000}/>
|
<ActivationCard
|
||||||
<ActivationCard text="Execution Sync Status" value="" isGaugeIncluded={true} gaugeColor={'#EB5757'} gaugeSynced={35324} gaugeTotal={200000}/>
|
text="Execution Sync Status"
|
||||||
|
value=""
|
||||||
|
isGaugeIncluded={true}
|
||||||
|
gaugeSynced={135324}
|
||||||
|
gaugeTotal={200000}
|
||||||
|
/>
|
||||||
|
<ActivationCard
|
||||||
|
text="Execution Sync Status"
|
||||||
|
value=""
|
||||||
|
isGaugeIncluded={true}
|
||||||
|
gaugeColor={'#EB5757'}
|
||||||
|
gaugeSynced={35324}
|
||||||
|
gaugeTotal={200000}
|
||||||
|
/>
|
||||||
</XStack>
|
</XStack>
|
||||||
<XStack space={'$2'}>
|
<XStack space={'$2'}>
|
||||||
<ActivationCard text="Current APR" value="4.40%" />
|
<ActivationCard text="Current APR" value="4.40%" />
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Stack, XStack, YStack } from 'tamagui'
|
import { Stack, YStack } from 'tamagui'
|
||||||
import { Text } from '@status-im/components'
|
import { Text } from '@status-im/components'
|
||||||
import ActivationSyncCard from './ActivationSyncCard'
|
import ActivationSyncCard from './ActivationSyncCard'
|
||||||
|
|
||||||
|
@ -44,7 +44,11 @@ const ActivationCard = ({
|
||||||
<Text size={13} weight={'semibold'}>
|
<Text size={13} weight={'semibold'}>
|
||||||
{text}
|
{text}
|
||||||
</Text>
|
</Text>
|
||||||
<ActivationSyncCard color={gaugeColor} synced={gaugeSynced} total={gaugeTotal} />
|
<ActivationSyncCard
|
||||||
|
color={gaugeColor || ''}
|
||||||
|
synced={gaugeSynced || 0}
|
||||||
|
total={gaugeTotal || 1}
|
||||||
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
)}
|
)}
|
||||||
</YStack>
|
</YStack>
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import { Stack, XStack, YStack } from 'tamagui'
|
import { Stack, XStack, YStack } from 'tamagui'
|
||||||
import StandardGauge from '../../../components/Charts/StandardGauge'
|
import StandardGauge from '../../../components/Charts/StandardGauge'
|
||||||
import { Text } from '@status-im/components'
|
import { Text } from '@status-im/components'
|
||||||
import BorderBox from '../../../components/General/BorderBox'
|
|
||||||
|
|
||||||
type ActivationSyncCardProps = {
|
type ActivationSyncCardProps = {
|
||||||
synced: number
|
synced: number
|
||||||
total: number
|
total: number
|
||||||
|
|
||||||
color: string
|
color: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue