Skip to content

Commit

Permalink
add ratings & users
Browse files Browse the repository at this point in the history
- flatten api file structure
- refactor db to use latest drizzle ver
- add web fallback for useWarmupBrowser
  • Loading branch information
dlustre committed Jun 3, 2024
1 parent fb98f6d commit 16a430f
Show file tree
Hide file tree
Showing 98 changed files with 3,066 additions and 2,010 deletions.
11 changes: 8 additions & 3 deletions apps/expo/src/app/auth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@ import { Text } from "tamagui";
import SignInWithOAuth from "~/components/auth/SignInWithOAuth";

export default function AuthPage() {
const auth = useAuth();
console.log("is signed in", auth.isSignedIn);
const { isSignedIn, isLoaded, userId } = useAuth();

if (!isLoaded) return <Text>Loading...</Text>;

console.log("is signed in", isSignedIn);
return (
<SafeAreaView>
<SignedIn>
<Text>You are Signed in</Text>
<Text zIndex={10} width="100%" height="100%" backgroundColor="red">
You are Signed in
</Text>
</SignedIn>
<SignedOut>
<SignInWithOAuth />
Expand Down
4 changes: 2 additions & 2 deletions apps/expo/src/components/menu/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function Home() {

const anteateryQuery = api.menu.get.useQuery(
{
date: date.toLocaleDateString("en-US"),
date,
period,
restaurant: "anteatery",
},
Expand All @@ -57,7 +57,7 @@ export function Home() {

const brandywineQuery = api.menu.get.useQuery(
{
date: date.toLocaleDateString("en-US"),
date,
period,
restaurant: "brandywine",
},
Expand Down
Loading

0 comments on commit 16a430f

Please sign in to comment.