Skip to content

Commit

Permalink
fix(chat): change code editor confirmation buttons order (Issue #2734) (
Browse files Browse the repository at this point in the history
#2913)

Co-authored-by: Magomed-Elbi Dzhukalaev <[email protected]>
Co-authored-by: Ilya Bondar <[email protected]>
  • Loading branch information
3 people authored Jan 9, 2025
1 parent 654ce18 commit 519eb6b
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,19 +189,19 @@ export const CodeAppView: FC<ViewProps> = ({
const modalOptions = useMemo(
() => [
{
label: 'Save',
dataQa: 'save-option',
label: "Don't save",
dataQa: 'not-save-option',
className: 'button-secondary',
onClick: () => {
dispatch(CodeEditorActions.saveAllModifiedFiles());
editorConfirmation && handleSubmit(editorConfirmation);
setEditorConfirmation(undefined);
},
},
{
label: "Don't save",
dataQa: 'not-save-option',
className: 'button-secondary',
label: 'Save',
dataQa: 'save-option',
onClick: () => {
dispatch(CodeEditorActions.saveAllModifiedFiles());
editorConfirmation && handleSubmit(editorConfirmation);
setEditorConfirmation(undefined);
},
Expand Down

0 comments on commit 519eb6b

Please sign in to comment.