Skip to content

Commit fe2fe26

Browse files
authored
skipping insurance on onboarding (#221)
* skipping insurance on onboarding * commenting upload csv * linting
1 parent 5924a03 commit fe2fe26

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
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}

frontend/app/signup/quickbooks.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Button } from "@/components/ui/button";
22
import { Card } from "@/components/ui/card";
33
import { GoSync } from "react-icons/go";
4-
import { FiUpload } from "react-icons/fi";
54
import { redirectToQuickbooks } from "@/api/quickbooks";
65

76
interface QuickbooksInfoProps {
@@ -44,15 +43,15 @@ export default function Quickbooks({ handleNext }: QuickbooksInfoProps) {
4443
<GoSync className="group-hover:text-fuchsia" /> Sync Quickbooks
4544
</Button>
4645
</div>
47-
<div className="w-full flex flex-col items-center">
46+
{/* <div className="w-full flex flex-col items-center">
4847
<Button
4948
type="button"
5049
className="max-h-[45px] w-fit bg-[var(--fuchsia)] text-white py-[12px] text-[16px] hover:bg-pink hover:text-fuchsia"
5150
style={{ paddingInline: "20px" }}
5251
>
5352
<FiUpload className="group-hover:text-fuchsia" /> Upload CSV
5453
</Button>
55-
</div>
54+
</div> */}
5655
<div className="w-full flex flex-col items-center">
5756
<Button
5857
type="button"

frontend/components/dashboard/NoDataPopup.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import { redirectToQuickbooks } from "@/api/quickbooks";
44
import { Button } from "@/components/ui/button";
55
import Link from "next/link";
6-
import { FiUpload } from "react-icons/fi";
76
import { GoSync } from "react-icons/go";
87

98
type Props = {
@@ -49,12 +48,12 @@ export default function NoDataPopup({ isOpen, onClose }: Props) {
4948
Sync Quickbooks
5049
</Button>
5150
</Link>
52-
<Link href="/upload-csv">
51+
{/* <Link href="/upload-csv">
5352
<Button className="group h-[34px] w-fit text-white text-[14px] bg-[var(--fuchsia)] hover:bg-pink hover:text-fuchsia">
5453
<FiUpload className="text-white group-hover:text-fuchsia" style={{ width: "14px" }} />{" "}
5554
Upload CSV
5655
</Button>
57-
</Link>
56+
</Link> */}
5857
</div>
5958
</div>
6059
</div>

0 commit comments

Comments
 (0)