From 4e6cd0e8fd39769762a788929345187414a6c0d0 Mon Sep 17 00:00:00 2001 From: Guillaume Peoc'h Date: Tue, 3 May 2022 10:56:05 +0200 Subject: [PATCH] SONAR-16263 Revoke button UI fix --- .../apps/users/components/TokensFormItem.tsx | 8 ++--- .../TokensFormItem-test.tsx.snap | 32 +++++++++---------- 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/users/components/TokensFormItem.tsx b/server/sonar-web/src/main/js/apps/users/components/TokensFormItem.tsx index f88add6a9fa..71ddd474254 100644 --- a/server/sonar-web/src/main/js/apps/users/components/TokensFormItem.tsx +++ b/server/sonar-web/src/main/js/apps/users/components/TokensFormItem.tsx @@ -99,9 +99,6 @@ export default class TokensFormItem extends React.PureComponent { - - - {deleteConfirmation === 'modal' ? ( { onConfirm={this.handleRevoke}> {({ onClick }) => ( )} diff --git a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/TokensFormItem-test.tsx.snap b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/TokensFormItem-test.tsx.snap index e75d8c66ab3..1aa8ba418b7 100644 --- a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/TokensFormItem-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/TokensFormItem-test.tsx.snap @@ -36,18 +36,15 @@ exports[`should render correctly 1`] = ` - - - @@ -90,13 +87,6 @@ exports[`should render correctly 2`] = ` - - - + users.tokens.revoke `; exports[`should revoke the token using inline confirmation 2`] = ` `; -- 2.39.5