unpack props inside component bodies
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user