generated from t3-oss/create-t3-turbo
-
-
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.
Merge pull request #38 from trevorpfiz/elektrikspark/ttp-87-dont-clea…
…r-new-patient-allow-them-to-reopen-app-and-get-sent ttp 87 dont clear new patient allow them to reopen app and get sent
- Loading branch information
Showing
92 changed files
with
1,190 additions
and
614 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 |
---|---|---|
|
@@ -22,6 +22,7 @@ next-env.d.ts | |
dist/ | ||
expo-env.d.ts | ||
apps/expo/.gitignore | ||
.p8 | ||
|
||
# production | ||
build | ||
|
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,18 @@ | ||
import { Slot } from "expo-router"; | ||
import { Provider, useAtom } from "jotai"; | ||
|
||
import { USE_PROVIDER_KEY_TO_RESET_ATOMS } from "~/lib/constants"; | ||
import { globalStore, providerKeyAtom } from "~/lib/global-store"; | ||
import { TRPCProvider } from "~/utils/api"; | ||
|
||
export default function MainLayout() { | ||
const [providerKey] = useAtom(providerKeyAtom, { store: globalStore }); | ||
|
||
return ( | ||
<TRPCProvider> | ||
<Provider key={USE_PROVIDER_KEY_TO_RESET_ATOMS ? providerKey : undefined}> | ||
<Slot /> | ||
</Provider> | ||
</TRPCProvider> | ||
); | ||
} |
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
File renamed without changes.
20 changes: 19 additions & 1 deletion
20
apps/expo/src/app/onboarding/_layout.tsx → ...xpo/src/app/(main)/onboarding/_layout.tsx
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
File renamed without changes.
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,27 @@ | ||
import React from "react"; | ||
import { Redirect } from "expo-router"; | ||
import { useAtom } from "jotai"; | ||
|
||
import { userJourneyAtom } from "~/app/(main)"; | ||
import { WelcomeForm } from "~/components/forms/welcome-form"; | ||
import { UserJourney } from "~/lib/constants"; | ||
|
||
export default function WelcomePage() { | ||
const [patientId] = useAtom(userJourneyAtom); | ||
const [userJourney, setUserJourney] = useAtom(userJourneyAtom); | ||
|
||
if (patientId) { | ||
if (userJourney === UserJourney.Onboarding) { | ||
return <Redirect href="/onboarding/overview" />; | ||
} | ||
} | ||
|
||
return ( | ||
<WelcomeForm | ||
onSuccess={() => { | ||
// set the user journey to onboarding | ||
setUserJourney(UserJourney.Onboarding); | ||
}} | ||
/> | ||
); | ||
} |
File renamed without changes.
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
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
apps/expo/src/app/onboarding/overview.tsx → ...po/src/app/(main)/onboarding/overview.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 8 additions & 3 deletions
11
apps/expo/src/app/onboarding/schedule.tsx → ...po/src/app/(main)/onboarding/schedule.tsx
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
File renamed without changes.
Oops, something went wrong.