feat: add TestSubstep along with step status

This commit is contained in:
Ali BARIN
2022-02-09 22:48:29 +01:00
committed by Ömer Faruk Aydın
parent 50ef6be69c
commit 020ef45f0a
13 changed files with 165 additions and 16 deletions

View File

@@ -13,6 +13,9 @@ type FlowSubstepTitleProps = {
valid?: boolean | null;
};
const validIcon = <CheckCircleIcon color="success" />;
const errorIcon = <ErrorIcon color="error" />;
function FlowSubstepTitle(props: FlowSubstepTitleProps): React.ReactElement {
const {
expanded = false,
@@ -22,9 +25,6 @@ function FlowSubstepTitle(props: FlowSubstepTitleProps): React.ReactElement {
} = props;
const hasValidation = valid !== null;
const validIcon = <CheckCircleIcon color="success" />;
const errorIcon = <ErrorIcon color="error" />;
const validationStatusIcon = valid ? validIcon : errorIcon;
return (