feat: add TestSubstep along with step status
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
50ef6be69c
commit
020ef45f0a
@@ -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 (
|
||||
|
Reference in New Issue
Block a user