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>
<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"
@ -138,12 +137,12 @@ class Layout extends React.Component<Props, State> {
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"

View File

@ -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',
}, },