mirror of
https://github.com/fullstack-cash/fullstack-gatsby-theme-bch-wallet.git
synced 2026-09-21 16:52:06 -07:00
style(wallet): Cleanup Wallet View
This commit is contained in:
@@ -20,24 +20,31 @@ class Wallet extends React.Component {
|
||||
return (
|
||||
<Content>
|
||||
<InfoWallets />
|
||||
|
||||
{/* Show wallet info is this exists */}
|
||||
{_this.props.walletInfo.mnemonic && (
|
||||
<WalletInfo walletInfo={_this.props.walletInfo} />
|
||||
)}
|
||||
|
||||
<NewWallet
|
||||
updateBalance={_this.props.updateBalance}
|
||||
setWalletInfo={_this.props.setWalletInfo}
|
||||
setBchWallet={_this.props.setBchWallet}
|
||||
walletInfo={_this.props.walletInfo}
|
||||
/>
|
||||
{/** Shows the 'create' and 'import' cards
|
||||
* if there's not a wallet created
|
||||
*/}
|
||||
{!_this.props.walletInfo.mnemonic && (
|
||||
<>
|
||||
<NewWallet
|
||||
updateBalance={_this.props.updateBalance}
|
||||
setWalletInfo={_this.props.setWalletInfo}
|
||||
setBchWallet={_this.props.setBchWallet}
|
||||
walletInfo={_this.props.walletInfo}
|
||||
/>
|
||||
|
||||
<ImportWallet
|
||||
updateBalance={_this.props.updateBalance}
|
||||
setWalletInfo={_this.props.setWalletInfo}
|
||||
setBchWallet={_this.props.setBchWallet}
|
||||
walletInfo={_this.props.walletInfo}
|
||||
/>
|
||||
<ImportWallet
|
||||
updateBalance={_this.props.updateBalance}
|
||||
setWalletInfo={_this.props.setWalletInfo}
|
||||
setBchWallet={_this.props.setBchWallet}
|
||||
walletInfo={_this.props.walletInfo}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
|
||||
{this.props.importComponents}
|
||||
</Content>
|
||||
|
||||
Reference in New Issue
Block a user