From f6429efb828e4eff0abe4168777022647a81cdfb Mon Sep 17 00:00:00 2001 From: irma12 Date: Tue, 23 Nov 2021 13:06:55 +0100 Subject: [PATCH] Fix type of check to JsonValue Signed-off-by: irma12 --- plugins/scorecards/package.json | 3 ++- .../scorecards/src/components/BooleanCheck/BooleanCheck.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/scorecards/package.json b/plugins/scorecards/package.json index 7fa19792ff..392216c27d 100644 --- a/plugins/scorecards/package.json +++ b/plugins/scorecards/package.json @@ -33,7 +33,8 @@ "@backstage/plugin-catalog-react": "^0.6.2", "@backstage/plugin-tech-insights-common": "^0.1.0", "@backstage/catalog-model": "^0.9.7", - "@backstage/errors": "^0.1.4" + "@backstage/errors": "^0.1.4", + "@backstage/types": "^0.1.1" }, "devDependencies": { "@backstage/cli": "^0.8.2", diff --git a/plugins/scorecards/src/components/BooleanCheck/BooleanCheck.tsx b/plugins/scorecards/src/components/BooleanCheck/BooleanCheck.tsx index 3920538983..a10730ce7b 100644 --- a/plugins/scorecards/src/components/BooleanCheck/BooleanCheck.tsx +++ b/plugins/scorecards/src/components/BooleanCheck/BooleanCheck.tsx @@ -19,6 +19,7 @@ import { makeStyles, List, ListItem, ListItemText } from '@material-ui/core'; import CheckCircleOutline from '@material-ui/icons/CheckCircleOutline'; import ErrorOutlineIcon from '@material-ui/icons/ErrorOutline'; import { CheckResult } from '@backstage/plugin-tech-insights-common'; +import { JsonValue } from '@backstage/types'; const useStyles = makeStyles(() => ({ listItemText: { @@ -34,7 +35,7 @@ type Prop = { checkResult: CheckResult[]; }; -const renderResult = (classes: any, result: Boolean) => { +const renderResult = (classes: any, result: JsonValue) => { return result ? ( ) : (