File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import React from "react";
44
55type infoPageProps = {
66 handleNext : ( ) => void ;
7+ handleSkip ?: ( ) => void ;
78 title : string ;
89 description : string ;
910 buttonText ?: string ;
@@ -13,6 +14,7 @@ type infoPageProps = {
1314
1415export 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments