Update connector statuses
parent
11454b59bb
commit
7d34a06f4b
|
@ -30,6 +30,13 @@ class WizardProgressBar extends PureComponent<Props> {
|
||||||
currentStep = 'circle-thick current'
|
currentStep = 'circle-thick current'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
i === steps.length - 1 &&
|
||||||
|
steps[i - 1].stepStatus === StepStatus.Complete
|
||||||
|
) {
|
||||||
|
currentStep = 'checkmark'
|
||||||
|
}
|
||||||
|
|
||||||
const stepEle = (
|
const stepEle = (
|
||||||
<div
|
<div
|
||||||
key={`stepEle${i}`}
|
key={`stepEle${i}`}
|
||||||
|
@ -42,7 +49,8 @@ class WizardProgressBar extends PureComponent<Props> {
|
||||||
)
|
)
|
||||||
|
|
||||||
// PROGRESS BAR CONNECTOR
|
// PROGRESS BAR CONNECTOR
|
||||||
let connectorStatus
|
let connectorStatus = ConnectorState.None
|
||||||
|
|
||||||
if (i > 0 && steps[i - 1].stepStatus === StepStatus.Complete) {
|
if (i > 0 && steps[i - 1].stepStatus === StepStatus.Complete) {
|
||||||
connectorStatus = ConnectorState.Some
|
connectorStatus = ConnectorState.Some
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue