Skip to content

Commit

Permalink
Adjust CloseWithUnsavedChanges dialog to new Dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
guergana committed Oct 19, 2024
1 parent 57d3100 commit 723cc4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import DangerousIcon from '@mui/icons-material/Dangerous'
import ConfirmDialog from '../../Parts/Dialogs/OneButton'
import TwoButtonDialog from '../../Parts/Dialogs/TwoButton'
import * as store from '@client/store'

export default function CloseWithUnsavedChangesDialog() {
Expand All @@ -14,13 +14,13 @@ export default function CloseWithUnsavedChangesDialog() {
}

return (
<ConfirmDialog
<TwoButtonDialog
open={true}
title="Unsaved Changes"
cancelLabel="Discard"
label="Save"
Icon={DangerousIcon}
description="There are unsaved changes. Please click Save or Discard"
description="There are unsaved changes."
onCancel={onDiscard}
onConfirm={onSave}
disableClosing={true}
Expand Down
2 changes: 1 addition & 1 deletion client/components/Application/Dialogs/UnsavedChanges.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function UnsavedChangesDialog() {
cancelLabel="Discard"
label="Save"
Icon={DangerousIcon}
description="There are unsaved changes. Please click Save or Discard"
description="There are unsaved changes."
onCancel={onDiscard}
onConfirm={onSave}
/>
Expand Down

0 comments on commit 723cc4b

Please sign in to comment.