Make send button disabled if not owner connected
This commit is contained in:
parent
1adeda041c
commit
256c78816f
|
@ -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"
|
||||
|
|
|
@ -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