diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectsManagement/RestoreAccessModal.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projectsManagement/RestoreAccessModal.tsx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/RestoreAccessModal.tsx b/server/sonar-web/src/main/js/apps/projectsManagement/RestoreAccessModal.tsx index b491fd281cd..9bc349a0fd9 100644 --- a/server/sonar-web/src/main/js/apps/projectsManagement/RestoreAccessModal.tsx +++ b/server/sonar-web/src/main/js/apps/projectsManagement/RestoreAccessModal.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, Modal } from 'design-system'; +import { Button, ButtonVariety } from '@sonarsource/echoes-react'; +import { Modal } from 'design-system'; import * as React from 'react'; import { FormattedMessage } from 'react-intl'; import { grantPermissionToUser } from '../../api/permissions'; @@ -92,9 +93,15 @@ export default class RestoreAccessModal extends React.PureComponent<Props, State </form> } primaryButton={ - <ButtonPrimary autoFocus disabled={loading} form={FORM_ID} type="submit"> + <Button + hasAutoFocus + isDisabled={loading} + form={FORM_ID} + type="submit" + variety={ButtonVariety.Primary} + > {translate('restore')} - </ButtonPrimary> + </Button> } secondaryButtonLabel={translate('cancel')} /> |