|
@@ -1,4 +1,4 @@
|
|
-import React from 'react'
|
|
|
|
|
|
+import React, { Fragment } from 'react'
|
|
import { BaseDialogProps } from '../BaseDialog'
|
|
import { BaseDialogProps } from '../BaseDialog'
|
|
import {
|
|
import {
|
|
StyledDialog,
|
|
StyledDialog,
|
|
@@ -10,7 +10,7 @@ import {
|
|
StyledChevron,
|
|
StyledChevron,
|
|
StyledStepTitle,
|
|
StyledStepTitle,
|
|
} from './Multistepper.style'
|
|
} from './Multistepper.style'
|
|
-import { SvgGlyphCheck, SvgGlyphChevronRight } from '@/shared/icons'
|
|
|
|
|
|
+import { SvgGlyphCheck } from '@/shared/icons'
|
|
import { Text } from '@/shared/components'
|
|
import { Text } from '@/shared/components'
|
|
|
|
|
|
type Step = {
|
|
type Step = {
|
|
@@ -34,8 +34,8 @@ const Multistepper: React.FC<MultistepperProps> = ({ steps, currentStepIdx = 0,
|
|
const isLast = idx === steps.length - 1
|
|
const isLast = idx === steps.length - 1
|
|
|
|
|
|
return (
|
|
return (
|
|
- <>
|
|
|
|
- <StyledStepInfo key={step.title} isActive={isActive}>
|
|
|
|
|
|
+ <Fragment key={idx}>
|
|
|
|
+ <StyledStepInfo isActive={isActive}>
|
|
<StyledCircle isFilled={isActive || isCompleted} isActive={isActive}>
|
|
<StyledCircle isFilled={isActive || isCompleted} isActive={isActive}>
|
|
{isCompleted ? <SvgGlyphCheck /> : idx + 1}
|
|
{isCompleted ? <SvgGlyphCheck /> : idx + 1}
|
|
</StyledCircle>
|
|
</StyledCircle>
|
|
@@ -47,7 +47,7 @@ const Multistepper: React.FC<MultistepperProps> = ({ steps, currentStepIdx = 0,
|
|
</StyledStepInfoText>
|
|
</StyledStepInfoText>
|
|
</StyledStepInfo>
|
|
</StyledStepInfo>
|
|
{isLast ? null : <StyledChevron />}
|
|
{isLast ? null : <StyledChevron />}
|
|
- </>
|
|
|
|
|
|
+ </Fragment>
|
|
)
|
|
)
|
|
})}
|
|
})}
|
|
</StyledStepsInfoContainer>
|
|
</StyledStepsInfoContainer>
|