Make send button disabled if not owner connected
This commit is contained in:
parent
1adeda041c
commit
256c78816f
|
@ -130,20 +130,19 @@ class Layout extends React.Component<Props, State> {
|
||||||
</Block>
|
</Block>
|
||||||
<Block className={classes.balance}>
|
<Block className={classes.balance}>
|
||||||
<Row align="end" className={classes.actions}>
|
<Row align="end" className={classes.actions}>
|
||||||
{granted && (
|
<Button
|
||||||
<Button
|
variant="contained"
|
||||||
variant="contained"
|
size="small"
|
||||||
size="small"
|
color="primary"
|
||||||
color="primary"
|
className={classes.send}
|
||||||
className={classes.send}
|
onClick={() => showSendFunds('Ether')}
|
||||||
onClick={() => showSendFunds('Ether')}
|
rounded
|
||||||
rounded
|
disabled={!granted}
|
||||||
testId="balance-send-btn"
|
testId="balance-send-btn"
|
||||||
>
|
>
|
||||||
<CallMade alt="Send Transaction" className={classNames(classes.leftIcon, classes.iconSmall)} />
|
<CallMade alt="Send Transaction" className={classNames(classes.leftIcon, classes.iconSmall)} />
|
||||||
Send
|
Send
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
size="small"
|
size="small"
|
||||||
|
|
|
@ -41,7 +41,6 @@ export const styles = () => ({
|
||||||
balance: {
|
balance: {
|
||||||
marginLeft: 'auto',
|
marginLeft: 'auto',
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
border: '1px solid #c8ced4',
|
|
||||||
borderRadius: '3px',
|
borderRadius: '3px',
|
||||||
padding: '20px',
|
padding: '20px',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue