aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2024-07-22 11:37:38 +0200
committersonartech <sonartech@sonarsource.com>2024-07-24 20:02:49 +0000
commit04de2de3d71fceab34404f5bb047671658dd1bb9 (patch)
tree0e2cb02442a587e32cb58811c52fdaebea6cee96 /server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx
parentb0789ab729b158223d633fd3ebfb34bf7c5ab516 (diff)
downloadsonarqube-04de2de3d71fceab34404f5bb047671658dd1bb9.tar.gz
sonarqube-04de2de3d71fceab34404f5bb047671658dd1bb9.zip
SONAR-22523 Replace old Buttons with Echoes Buttons
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx
index 3c92d5e320a..a4dfe88e761 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.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 { DangerButtonPrimary, Modal } from 'design-system';
+import { Button, ButtonVariety } from '@sonarsource/echoes-react';
+import { Modal } from 'design-system';
import * as React from 'react';
import { useRouter } from '~sonar-aligned/components/hoc/withRouter';
import { translate, translateWithParameters } from '../../../helpers/l10n';
@@ -45,9 +46,9 @@ export default function DeleteQualityGateForm({ qualityGate, onClose }: Readonly
onClose={onClose}
body={translateWithParameters('quality_gates.delete.confirm.message', qualityGate.name)}
primaryButton={
- <DangerButtonPrimary autoFocus type="submit" onClick={onDelete}>
+ <Button hasAutoFocus type="submit" onClick={onDelete} variety={ButtonVariety.Danger}>
{translate('delete')}
- </DangerButtonPrimary>
+ </Button>
}
secondaryButtonLabel={translate('cancel')}
/>