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