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 className={classes.balance}>
|
||||
<Row align="end" className={classes.actions}>
|
||||
{granted && (
|
||||
<Button
|
||||
variant="contained"
|
||||
size="small"
|
||||
color="primary"
|
||||
className={classes.send}
|
||||
onClick={() => showSendFunds('Ether')}
|
||||
rounded
|
||||
testId="balance-send-btn"
|
||||
>
|
||||
<CallMade alt="Send Transaction" className={classNames(classes.leftIcon, classes.iconSmall)} />
|
||||
Send
|
||||
</Button>
|
||||
)}
|
||||
<Button
|
||||
variant="contained"
|
||||
size="small"
|
||||
color="primary"
|
||||
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"
|
||||
|
|
|
@ -41,7 +41,6 @@ export const styles = () => ({
|
|||
balance: {
|
||||
marginLeft: 'auto',
|
||||
overflow: 'hidden',
|
||||
border: '1px solid #c8ced4',
|
||||
borderRadius: '3px',
|
||||
padding: '20px',
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue