mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-10 10:26:53 +00:00
feat(deposits): separate chain parity as component
This commit is contained in:
parent
4229b03b8c
commit
9dce578fa5
20
src/pages/ValidatorOnboarding/Deposit/ChainParity.tsx
Normal file
20
src/pages/ValidatorOnboarding/Deposit/ChainParity.tsx
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
import { Text } from '@status-im/components'
|
||||||
|
|
||||||
|
const ChainParity = () => {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Text size={15} weight="regular" color={'#647084'}>
|
||||||
|
Awaiting chain parity
|
||||||
|
</Text>
|
||||||
|
<div style={{ padding: '7.5% 20%' }}>
|
||||||
|
<img
|
||||||
|
src="/images/chain-parity.png"
|
||||||
|
alt="Chain parity"
|
||||||
|
style={{ width: '100%' }}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default ChainParity
|
@ -8,6 +8,7 @@ import ValidatorRequest from './ValidatorRequest/ValidatorRequest'
|
|||||||
import ConnectWallet from './ConnectWallet'
|
import ConnectWallet from './ConnectWallet'
|
||||||
import ConnectedWallet from './ConnectedWallet'
|
import ConnectedWallet from './ConnectedWallet'
|
||||||
import DepositTitle from './DepositTitle'
|
import DepositTitle from './DepositTitle'
|
||||||
|
import ChainParity from './ChainParity'
|
||||||
import ValidatorsMenuWithPrice from '../../../components/General/ValidatorsMenuWithPrice'
|
import ValidatorsMenuWithPrice from '../../../components/General/ValidatorsMenuWithPrice'
|
||||||
import { RootState } from '../../../redux/store'
|
import { RootState } from '../../../redux/store'
|
||||||
import { DEPOSIT_SUBTITLE } from '../../../constants'
|
import { DEPOSIT_SUBTITLE } from '../../../constants'
|
||||||
@ -41,18 +42,7 @@ const Deposit = () => {
|
|||||||
>
|
>
|
||||||
<DepositTitle />
|
<DepositTitle />
|
||||||
{isChainParity ? (
|
{isChainParity ? (
|
||||||
<>
|
<ChainParity />
|
||||||
<Text size={15} weight="regular" color={'#647084'}>
|
|
||||||
Awaiting chain parity
|
|
||||||
</Text>
|
|
||||||
<div style={{ padding: '7.5% 20%' }}>
|
|
||||||
<img
|
|
||||||
src="/images/chain-parity.png"
|
|
||||||
alt="Chain parity"
|
|
||||||
style={{ width: '100%' }}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
) : (
|
) : (
|
||||||
<YStack space={'$3'}>
|
<YStack space={'$3'}>
|
||||||
{isTransactionConfirmation ? (
|
{isTransactionConfirmation ? (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user