aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/controls/ValidationModal.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components/controls/ValidationModal.tsx')
-rw-r--r--server/sonar-web/src/main/js/components/controls/ValidationModal.tsx16
1 files changed, 9 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/components/controls/ValidationModal.tsx b/server/sonar-web/src/main/js/components/controls/ValidationModal.tsx
index 82fcd4ae4dd..9f12993c289 100644
--- a/server/sonar-web/src/main/js/components/controls/ValidationModal.tsx
+++ b/server/sonar-web/src/main/js/components/controls/ValidationModal.tsx
@@ -17,7 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import { ButtonPrimary, ButtonSecondary, Modal } from 'design-system';
+import { Button, ButtonVariety } from '@sonarsource/echoes-react';
+import { Modal } from 'design-system';
import { FormikValues } from 'formik';
import * as React from 'react';
import { translate } from '../../helpers/l10n';
@@ -55,21 +56,22 @@ export default class ValidationModal<V extends FormikValues> extends React.PureC
<Modal.Footer
loading={formState.isSubmitting}
primaryButton={
- <ButtonPrimary
+ <Button
type="submit"
- disabled={formState.isSubmitting || !formState.isValid || !formState.dirty}
+ isDisabled={formState.isSubmitting || !formState.isValid || !formState.dirty}
+ variety={ButtonVariety.Primary}
>
{this.props.confirmButtonText}
- </ButtonPrimary>
+ </Button>
}
secondaryButton={
- <ButtonSecondary
+ <Button
className="sw-ml-2"
- disabled={formState.isSubmitting}
+ isDisabled={formState.isSubmitting}
onClick={this.props.onClose}
>
{translate('cancel')}
- </ButtonSecondary>
+ </Button>
}
/>
</>