mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-09 10:03:36 +00:00
feat: add constant for deposit subtitle
This commit is contained in:
parent
ff088dfb23
commit
0c33bcd215
@ -31,3 +31,4 @@ export const CURRENCIES = [
|
||||
price: 1323.61,
|
||||
},
|
||||
]
|
||||
export const DEPOSIT_SUBTITLE = 'Connect you Wallet to stake required ETH for new validators'
|
||||
|
@ -9,8 +9,8 @@ import ValidatorsMenuWithPrice from '../../../components/General/ValidatorsMenuW
|
||||
import ConnectWallet from './ConnectWallet'
|
||||
import ConnectedWallet from './ConnectedWallet'
|
||||
import DepositTitle from './DepositTitle'
|
||||
import DepositSubtitle from './DepositSubtitle'
|
||||
import { RootState } from '../../../redux/store'
|
||||
import { DEPOSIT_SUBTITLE } from '../../../constants'
|
||||
|
||||
const Deposit = () => {
|
||||
const [isInfoBoxVisible, setIsInfoBoxVisible] = useState(true)
|
||||
@ -36,11 +36,14 @@ const Deposit = () => {
|
||||
>
|
||||
<DepositTitle isTransactionConfirmation={isTransactionConfirmation} />
|
||||
{isTransactionConfirmation ? (
|
||||
<DepositSubtitle />
|
||||
<Text size={15} weight="regular" color={'#647084'}>
|
||||
{DEPOSIT_SUBTITLE}
|
||||
</Text>
|
||||
) : (
|
||||
<ValidatorsMenuWithPrice
|
||||
validatorCount={validatorCount}
|
||||
changeValidatorCountHandler={changeValidatorCountHandler}
|
||||
label={DEPOSIT_SUBTITLE}
|
||||
/>
|
||||
)}
|
||||
<DividerLine />
|
||||
|
Loading…
x
Reference in New Issue
Block a user