1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

add faucet function

* use function implemented in #24
This commit is contained in:
Matthias Kretschmann 2019-02-26 08:38:58 -03:00
parent d35a1d56e0
commit 3a75a00668
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -56,20 +56,9 @@ const AccountPopover = () => (
<User.Consumer>
{states =>
states.account ? (
<>
{/* <Blockies
size={10}
scale={2}
className={styles.avatar}
seed={activeAccount.getId()}
/> */}
<span
className={styles.address}
title={states.account}
>
{states.account}
</span>
</>
<span className={styles.address} title={states.account}>
{states.account}
</span>
) : (
'No account selected'
)
@ -80,9 +69,13 @@ const AccountPopover = () => (
Network: &nbsp;<strong>{''}</strong>
</div>
<div className={styles.popoverInfoline}>
<Button link onClick={''}>
Make it rain
</Button>
<User.Consumer>
{states => (
<Button link onClick={states.requestFromFaucet}>
Make it rain
</Button>
)}
</User.Consumer>
</div>
</div>
)