From ec91010604b11b026df3a234cd47f72b034f632a Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 5 Apr 2019 15:45:44 +0200 Subject: [PATCH] show message to non-Web3 users --- .../molecules/AccountStatus/Popover.tsx | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/client/src/components/molecules/AccountStatus/Popover.tsx b/client/src/components/molecules/AccountStatus/Popover.tsx index c0af1bf..4dbfeee 100644 --- a/client/src/components/molecules/AccountStatus/Popover.tsx +++ b/client/src/components/molecules/AccountStatus/Popover.tsx @@ -7,7 +7,7 @@ export default class Popover extends PureComponent<{ style: React.CSSProperties }> { public render() { - const { account, balance, network } = this.context + const { account, balance, network, isWeb3 } = this.context return (
)} -
- {account ? ( - - {account} - - ) : ( - No account selected - )} -
+ {!isWeb3 ? ( +
+ No Web3 detected. Use a browser with MetaMask installed + to publish assets. +
+ ) : ( +
+ {account ? ( + + {account} + + ) : ( + No account selected + )} +
+ )}
{network && network}