unpack props inside component bodies
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -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