-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Onboarding Template and fix imports
- Loading branch information
Showing
9 changed files
with
93 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { useState } from "react"; | ||
|
||
interface Props { | ||
setPage: (arg0: any) => any; | ||
} | ||
|
||
export default function GetStartedPage({ setPage }: Props) { | ||
return <div></div>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { useState } from "react"; | ||
|
||
interface Props { | ||
setPage: (arg0: any) => any; | ||
} | ||
|
||
export default function HouseholdInfoPage({ setPage }: Props) { | ||
return <div></div>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { useState } from "react"; | ||
|
||
interface Props { | ||
setPage: (arg0: any) => any; | ||
} | ||
|
||
export default function LiabilityWaiverPage({ setPage }: Props) { | ||
return <div></div>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { useState } from "react"; | ||
|
||
interface Props { | ||
setPage: (arg0: any) => any; | ||
} | ||
|
||
export default function PreferredContactPage({ setPage }: Props) { | ||
return <div></div>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { useState } from "react"; | ||
|
||
interface Props { | ||
setPage: (arg0: any) => any; | ||
} | ||
|
||
export default function RequestItemsPage({ setPage }: Props) { | ||
|
||
return ( | ||
<div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { useState } from "react"; | ||
|
||
interface Props { | ||
setPage: (arg0: any) => any; | ||
} | ||
|
||
export default function ShippingAddressPage({ setPage }: Props) { | ||
return <div></div>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { useState } from "react"; | ||
|
||
import GetStartedPage from "@components/Onboarding/GetStarted"; | ||
import HouseholdInfoPage from "@components/Onboarding/HouseholdInfo"; | ||
import LiabilityWaiverPage from "@components/Onboarding/LiabilityWaiver"; | ||
import RequestItemsPage from "@components/Onboarding/RequestItems"; | ||
import ShippingAddressPage from "@components/Onboarding/ShippingAddress"; | ||
import PreferredContactPage from "@components/Onboarding/PreferredContact"; | ||
|
||
export default function CaregiverOnboarding() { | ||
// Page 0 - Let's Get Started, Page 1 - Household Information, Page 2 - Liability Waiver, | ||
// Page 3 - Request Items, Page 4 - Shipping Address, Page 5 - Contact Page | ||
const [page, setPage] = useState(0); | ||
|
||
return ( | ||
<div> | ||
{page == 0 ? ( | ||
<GetStartedPage setPage={setPage} /> | ||
) : page == 1 ? ( | ||
<HouseholdInfoPage setPage={setPage} /> | ||
) : page == 2 ? ( | ||
<LiabilityWaiverPage setPage={setPage} /> | ||
) : page == 3 ? ( | ||
<RequestItemsPage setPage={setPage} /> | ||
) : page == 4 ? ( | ||
<ShippingAddressPage setPage={setPage} /> | ||
) : page == 5 ? ( | ||
<PreferredContactPage setPage={setPage} /> | ||
) : null | ||
// Save data and route to next page | ||
} | ||
</div> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.