Skip to content

Commit

Permalink
fix(Account): make "Change password" buttons consistent with other di…
Browse files Browse the repository at this point in the history
…alogs (Greenstand#771)
  • Loading branch information
marwan-osama authored Aug 2, 2022
1 parent 70322d9 commit c7a7566
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/components/Account.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,14 @@ function Account(props) {
</Typography>
</DialogContent>
<DialogActions>
<Button onClick={handleConfirm} color="primary">
Confirm
</Button>
<Button onClick={handleClose} color="primary">
Close
<Button onClick={handleClose}>Cancel</Button>
<Button
onClick={handleConfirm}
variant="contained"
color="primary"
disabled={!oldPassword || !newPassword || !confirmedPassword}
>
Save
</Button>
</DialogActions>
</Suspense>
Expand Down

0 comments on commit c7a7566

Please sign in to comment.