Fix type of check to JsonValue

Signed-off-by: irma12 <irma@roadie.io>
This commit is contained in:
irma12
2021-11-23 13:06:55 +01:00
parent 883fd2f3a5
commit f6429efb82
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -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",
@@ -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 ? (
<CheckCircleOutline className={classes.icon} color="primary" />
) : (