mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
hide wallet selection in non-Web3 browsers
This commit is contained in:
parent
b4db8a6556
commit
4f051deefa
@ -23,7 +23,7 @@ export default class Account extends PureComponent<
|
||||
}
|
||||
|
||||
public render() {
|
||||
const { account, isBurner, loginMetamask } = this.context
|
||||
const { account, isBurner, loginMetamask, isWeb3Capable } = this.context
|
||||
const { isAccountInfoOpen } = this.state
|
||||
const seedphrase = localStorage.getItem('seedphrase') as string
|
||||
const blockies = account && toDataUrl(account)
|
||||
@ -72,7 +72,7 @@ export default class Account extends PureComponent<
|
||||
) : (
|
||||
'MetaMask'
|
||||
)}
|
||||
<WalletSelector />
|
||||
{isWeb3Capable && <WalletSelector />}
|
||||
</div>
|
||||
|
||||
{isBurner && isAccountInfoOpen && (
|
||||
|
@ -40,12 +40,15 @@ $popoverWidth: 18rem;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
/* stylelint-disable */
|
||||
button {
|
||||
svg,
|
||||
&:last-child {
|
||||
&[data-action] {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* stylelint-enable */
|
||||
}
|
||||
|
||||
.balance {
|
||||
|
@ -81,6 +81,7 @@ export default class WalletSelector extends PureComponent<
|
||||
link
|
||||
className={styles.openLink}
|
||||
onClick={this.toggleModal}
|
||||
data-action="wallet"
|
||||
>
|
||||
{content.title}
|
||||
</Button>
|
||||
|
Loading…
Reference in New Issue
Block a user