Merge pull request #16614 from backstage/freben/unpack-props

🧹 unpack props inside component bodies
This commit is contained in:
Fredrik Adelöw
2023-03-02 10:50:51 +01:00
committed by GitHub
51 changed files with 253 additions and 297 deletions
+1 -5
View File
@@ -18,11 +18,7 @@ import { default as React_2 } from 'react';
import { RouteRef } from '@backstage/core-plugin-api';
// @public (undocumented)
export const BooleanCheck: ({
checkResult,
}: {
checkResult: CheckResult;
}) => JSX.Element;
export const BooleanCheck: (props: { checkResult: CheckResult }) => JSX.Element;
// @public
export type Check = {
@@ -22,8 +22,8 @@ import { CheckResult } from '@backstage/plugin-tech-insights-common';
/**
* @public
*/
export const BooleanCheck = ({ checkResult }: { checkResult: CheckResult }) => {
return !!checkResult.result ? (
export const BooleanCheck = (props: { checkResult: CheckResult }) => {
return !!props.checkResult.result ? (
<CheckCircleOutline color="primary" />
) : (
<ErrorOutlineIcon color="error" />