Skip to content

Commit

Permalink
add path prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
redstar504 committed Jul 5, 2024
1 parent a91bf3e commit 77f1e01
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/NavItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
export default function NavItem({ title, path, isActive, isEnabled }) {
return (
<li className={isActive ? 'active' : ''}>
<a href={isEnabled ? `/#${path}` : null}><span>{title}</span></a>
<a href={isEnabled ? `/multi-step-form-react/#${path}` : null}><span>{title}</span></a>
</li>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/steps/AddonsStep.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function AddonsStep() {
</ul>
</form>
</section>
<FormButtons forForm="addonsForm" onSubmit={handleSubmit(onSubmit)} goBack="/#/plan" />
<FormButtons forForm="addonsForm" onSubmit={handleSubmit(onSubmit)} goBack="/multi-step-form-react/#/plan" />
</>
)
}
2 changes: 1 addition & 1 deletion src/steps/SelectPlanStep.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default function SelectPlanStep() {
</fieldset>
</form>
</section>
<FormButtons forForm="selectPlanForm" onSubmit={handleSubmit(onSubmit)} goBack="/#/" />
<FormButtons forForm="selectPlanForm" onSubmit={handleSubmit(onSubmit)} goBack="/multi-step-form-react/#/" />
</>
)
}
4 changes: 2 additions & 2 deletions src/steps/SummaryStep.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function SummaryStep() {
<li id="heading">
<div>
<h2>{plans[subscription.selectedPlan].label} ({capitalize(term.long)})</h2>
<a href="/#/plan">Change</a>
<a href="/multi-step-form-react/#/plan">Change</a>
</div>
<strong>${plans[subscription.selectedPlan][term.long]}/{term.short}</strong>
</li>
Expand All @@ -43,7 +43,7 @@ export default function SummaryStep() {
<strong>+${subtotal}/{term.short}</strong>
</footer>
</section>
<FormButtons onSubmit={handleSubmit} goBack="/#/addons" nextLabel="Confirm" />
<FormButtons onSubmit={handleSubmit} goBack="/multi-step-form-react/#/addons" nextLabel="Confirm" />
</>
)
}

0 comments on commit 77f1e01

Please sign in to comment.