Skip to content

Commit

Permalink
Make the disable button destructive. (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne authored Sep 15, 2023
1 parent 537f8eb commit e0aac39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion settings/src/components/totp.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ function ConfirmDisableApp( { onConfirm, onClose, disabling } ) {
</div>
) : (
<div className="wporg-2fa__submit-actions">
<Button variant="primary" onClick={ onConfirm }>
<Button variant="primary" isDestructive onClick={ onConfirm }>
Disable
</Button>

Expand Down
2 changes: 1 addition & 1 deletion settings/src/components/webauthn/webauthn.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function ConfirmDisableKeys( { onConfirm, onClose, disabling } ) {
</div>
) : (
<div className="wporg-2fa__submit-actions">
<Button variant="primary" onClick={ onConfirm }>
<Button variant="primary" isDestructive onClick={ onConfirm }>
Disable
</Button>

Expand Down

0 comments on commit e0aac39

Please sign in to comment.