Make send button disabled if not owner connected

This commit is contained in:
Germán Martínez 2019-09-02 11:21:56 +02:00
parent 1adeda041c
commit 256c78816f
2 changed files with 13 additions and 15 deletions

View File

@ -130,7 +130,6 @@ class Layout extends React.Component<Props, State> {
</Block>
<Block className={classes.balance}>
<Row align="end" className={classes.actions}>
{granted && (
<Button
variant="contained"
size="small"
@ -138,12 +137,12 @@ class Layout extends React.Component<Props, State> {
className={classes.send}
onClick={() => showSendFunds('Ether')}
rounded
disabled={!granted}
testId="balance-send-btn"
>
<CallMade alt="Send Transaction" className={classNames(classes.leftIcon, classes.iconSmall)} />
Send
</Button>
)}
<Button
variant="contained"
size="small"

View File

@ -41,7 +41,6 @@ export const styles = () => ({
balance: {
marginLeft: 'auto',
overflow: 'hidden',
border: '1px solid #c8ced4',
borderRadius: '3px',
padding: '20px',
},