From b2ccddefbdc6dd41e3d4999ff3bc0034ddadaa5e Mon Sep 17 00:00:00 2001 From: rui ma Date: Fri, 28 Jul 2023 17:05:48 +0800 Subject: [PATCH] fix: remove sonar card disable class Signed-off-by: rui ma --- .changeset/large-vans-cross.md | 5 +++++ .../src/components/SonarQubeCard/SonarQubeCard.tsx | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 .changeset/large-vans-cross.md diff --git a/.changeset/large-vans-cross.md b/.changeset/large-vans-cross.md new file mode 100644 index 0000000000..f50b432742 --- /dev/null +++ b/.changeset/large-vans-cross.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-sonarqube': patch +--- + +Remove sonarQube card disable class diff --git a/plugins/sonarqube/src/components/SonarQubeCard/SonarQubeCard.tsx b/plugins/sonarqube/src/components/SonarQubeCard/SonarQubeCard.tsx index 7ad4717bd2..46a22b9284 100644 --- a/plugins/sonarqube/src/components/SonarQubeCard/SonarQubeCard.tsx +++ b/plugins/sonarqube/src/components/SonarQubeCard/SonarQubeCard.tsx @@ -68,9 +68,6 @@ const useStyles = makeStyles(theme => ({ lastAnalyzed: { color: theme.palette.text.secondary, }, - disabled: { - backgroundColor: theme.palette.background.default, - }, })); /** @public */ @@ -163,9 +160,6 @@ export const SonarQubeCard = (props: { action: classes.action, }, }} - className={ - !loading && (!projectTitle || !value) ? classes.disabled : undefined - } > {loading && }