-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
947 additions
and
1,347 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
import { Text, View } from "react-native"; | ||
|
||
import { useAuth } from "~/utils/authProvider"; | ||
|
||
export default function Onboarding() { | ||
const { completeOnboarding } = useAuth(); | ||
return ( | ||
<View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}> | ||
<Text onPress={completeOnboarding}>ONBOARDING</Text> | ||
</View> | ||
); | ||
} |
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
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,31 @@ | ||
import { ScrollView, Text, View } from "react-native"; | ||
|
||
import { api } from "~/utils/api"; | ||
import { useAuth } from "../utils/authProvider"; | ||
|
||
export default function Index() { | ||
const { signOut, user, resetOnboarding, completeOnboarding } = useAuth(); | ||
|
||
const { data } = api.transaction.allNot.useQuery(); | ||
|
||
return ( | ||
<View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}> | ||
<Text>id: {user?.id}!</Text> | ||
<Text> | ||
name: {user?.firstName} {user?.lastName}! | ||
</Text> | ||
<Text onPress={() => signOut()}>Sign Out</Text> | ||
<Text className="mt-10 text-xl" onPress={resetOnboarding}> | ||
RESET | ||
</Text> | ||
<Text className="mt-10 text-xl" onPress={completeOnboarding}> | ||
SET | ||
</Text> | ||
<ScrollView> | ||
{data?.map((transaction) => ( | ||
<Text key={transaction.id}>{transaction.id}</Text> | ||
))} | ||
</ScrollView> | ||
</View> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,17 +1,13 @@ | ||
import { Text, View } from "react-native"; | ||
import { Redirect } from "expo-router"; | ||
|
||
import { useAuth } from "../utils/authProvider"; | ||
|
||
export default function Index() { | ||
const { signOut, user } = useAuth(); | ||
const { ready } = useAuth(); | ||
|
||
return ( | ||
<View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}> | ||
<Text>id: {user?.id}!</Text> | ||
<Text> | ||
name: {user?.firstName} {user?.lastName}! | ||
</Text> | ||
<Text onPress={() => signOut()}>Sign Out</Text> | ||
</View> | ||
); | ||
if (!ready) { | ||
return null; | ||
} | ||
|
||
return <Redirect href="/home" />; | ||
} |
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
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
Oops, something went wrong.