fix: swap confirm and cancel buttons in the confirmDialog

pull/2325/head
Audric Ackermann 3 years ago
parent 3713e95a9f
commit 55869fbe37
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -127,6 +127,12 @@ export const SessionConfirm = (props: SessionConfirmDialogProps) => {
</div>
<div className="session-modal__button-group">
<SessionButton
text={okText}
buttonColor={okTheme}
onClick={onClickOkHandler}
dataTestId="session-confirm-ok-button"
/>
{!hideCancel && (
<SessionButton
text={cancelText}
@ -135,12 +141,6 @@ export const SessionConfirm = (props: SessionConfirmDialogProps) => {
dataTestId="session-confirm-cancel-button"
/>
)}
<SessionButton
text={okText}
buttonColor={okTheme}
onClick={onClickOkHandler}
dataTestId="session-confirm-ok-button"
/>
</div>
</SessionWrapperModal>
);

Loading…
Cancel
Save