Skip to content

Commit

Permalink
removed completed toggle, multi check turns completed true
Browse files Browse the repository at this point in the history
  • Loading branch information
omgitsmiles committed Aug 20, 2024
1 parent 6bfddc7 commit 458b447
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/js/common/stories/HowItWorksWizard.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ export default {
options: initialSteps.map((step) => step.id),
description: 'Select which steps are active',
},
completed: {
control: { type: 'boolean' },
description: 'Toggle the completed status',
},
steps: {
control: 'object',
description: 'Modify the steps',
Expand Down Expand Up @@ -84,10 +80,10 @@ export const HowItWorksWizard = (args) => {
useEffect(() => {
setSteps((prevSteps) => prevSteps.map((step) => ({
...step,
completed: args.completed && args.activeStep.includes(step.id),
completed: true && args.activeStep.includes(step.id),
})));
action(`Active Step Changed to: ${args.activeStep}`)();
}, [args.activeStep, args.completed]);
}, [args.activeStep]);


const handleStepToggle = (index) => {
Expand All @@ -113,5 +109,4 @@ export const HowItWorksWizard = (args) => {
HowItWorksWizard.args = {
steps: initialSteps,
activeStep: [1],
completed: false,
};

0 comments on commit 458b447

Please sign in to comment.