Skip to content

Commit

Permalink
[GEN-1780]: fix text for warning modals (#1864)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenElferink authored Nov 26, 2024
1 parent 9d2bcf9 commit 1059eae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/webapp/components/modals/cancel-warning/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const CancelWarning: React.FC<Props> = ({ isOpen, noOverlay, name, onApprove, on
isOpen={isOpen}
noOverlay={noOverlay}
title={`Cancel${name ? ` ${name}` : ''}`}
description='Are you sure you want to discard your changes?'
description='Are you sure you want to cancel?'
approveButton={{
text: 'Cancel',
text: 'Confirm',
variant: 'warning',
onClick: onApprove,
}}
Expand Down
4 changes: 2 additions & 2 deletions frontend/webapp/components/modals/delete-warning/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ const DeleteWarning: React.FC<Props> = ({ isOpen, noOverlay, name, note, onAppro
description='Are you sure you want to delete?'
note={note}
approveButton={{
text: 'Delete',
text: 'Confirm',
variant: 'danger',
onClick: onApprove,
}}
denyButton={{
text: 'Cancel',
text: 'Go Back',
onClick: onDeny,
}}
/>
Expand Down

0 comments on commit 1059eae

Please sign in to comment.