Skip to content

Commit

Permalink
[#36] Fixed current step active
Browse files Browse the repository at this point in the history
  • Loading branch information
vaszig committed Nov 8, 2023
1 parent 1f4b5fb commit 8d86893
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ const Form = () => {
formDefinition: step.formDefinition,
isCompleted: submission ? submission.steps[index].completed : false,
isApplicable: submission ? submission.steps[index].isApplicable : step.isApplicable ?? true,
isCurrent: checkMatchesPath(currentPathname, step.slug),
isCurrent: checkMatchesPath(currentPathname, `/stap/${step.slug}`),
canNavigateTo: canNavigateToStep(index),
useLink: true,
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const ProgressIndicatorItem = ({
/>
</Link>
) : (
<Body component="span" modifiers={['big', 'muted']}>
<Body component="span" modifiers={isCompleted ? ['big'] : ['big', 'muted']}>
{fixedText || text}
</Body>
)}
Expand Down

0 comments on commit 8d86893

Please sign in to comment.