Skip to content

Commit

Permalink
Align buttons in SignMessage modal
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Jun 22, 2023
1 parent e1227c9 commit af3bf94
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/components/tx-flow/flows/SignMessage/SignMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,14 @@ const SignMessage = ({ onClose, message, safeAppId, requestId }: ProposeProps |

<TxCard>
<CardActions>
{/* TODO: Remove this Cancel button once we can figure out how to move the logic outside */}
<Button onClick={handleClose}>Cancel</Button>
<Button variant="contained" color="primary" onClick={onSign} disabled={isDisabled}>
Sign
</Button>
<Box display="flex" justifyContent="space-between" width="100%">
{/* TODO: Remove this Cancel button once we can figure out how to move the logic outside */}
<Button onClick={handleClose}>Cancel</Button>

<Button variant="contained" color="primary" onClick={onSign} disabled={isDisabled}>
Sign
</Button>
</Box>
</CardActions>
<ConfirmationDialog open={showCloseTooltip} onCancel={() => setShowCloseTooltip(false)} onClose={onClose} />
</TxCard>
Expand Down

0 comments on commit af3bf94

Please sign in to comment.