Skip to content

Commit f936ff2

Browse files
committed
skipping insurance on onboarding
1 parent 5924a03 commit f936ff2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

frontend/app/signup/infoPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import React from "react";
44

55
type infoPageProps = {
66
handleNext: () => void;
7+
handleSkip?: () => void;
78
title: string;
89
description: string;
910
buttonText?: string;
@@ -13,6 +14,7 @@ type infoPageProps = {
1314

1415
export default function InfoPage({
1516
handleNext,
17+
handleSkip,
1618
title,
1719
description,
1820
optional = false,
@@ -42,7 +44,7 @@ export default function InfoPage({
4244
<Button
4345
type="button"
4446
variant="link"
45-
onClick={handleNext}
47+
onClick={handleSkip || handleNext}
4648
className="underline hover:text-stone-200 h-fit w-fit text-[12px] font-bold p-0 mt-[12px]"
4749
>
4850
Skip for now

frontend/app/signup/onboarding.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export default function Onboarding({ email }: OnboardingProps) {
6565
<InfoPage
6666
key={4}
6767
handleNext={incrementProgress}
68+
handleSkip={() => setProgress((prev) => prev + 2)}
6869
title={"Enter insurance information."}
6970
description="This is an optional step but will be helpful if you choose to file a claim report."
7071
optional={true}

0 commit comments

Comments
 (0)