Skip to content

Commit 2fae660

Browse files
committed
update readme
1 parent 3973a96 commit 2fae660

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ Your AI-powered cooking assistant, designed to make your time in the kitchen mor
4545

4646
## Screenshots
4747

48-
*(Will be added later...)*
48+
<img width="470" alt="Screenshot 2024-12-17 at 18 07 53" src="https://github.com/user-attachments/assets/49a9f8bd-eaad-4720-ab81-c20c1a178bcb" />
49+
<img width="470" alt="Screenshot 2024-12-17 at 18 08 06" src="https://github.com/user-attachments/assets/59cc44ac-8d13-49e3-90c3-1a2f2f4c17c0" />
50+
<img width="470" alt="Screenshot 2024-12-17 at 18 09 07" src="https://github.com/user-attachments/assets/eeb745a8-ee48-4c12-9e5a-ad9391d6fe51" />
51+
<img width="470" alt="Screenshot 2024-12-17 at 18 09 16" src="https://github.com/user-attachments/assets/0fce9564-0e15-480d-a193-28800e64a90f" />
52+
4953

5054
---
5155

app/(tabs)/profile.tsx

+7-5
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export default function Account({ session }: { session: Session }) {
2323
if (!session?.user) throw new Error('No user on the session!');
2424

2525
const { data, error, status } = await supabase
26-
.from('profiles')
27-
.select(`username, phone, email`)
26+
.from('auth')
27+
.select('*')
2828
.eq('id', session?.user.id)
2929
.single();
3030
if (error && status !== 406) {
@@ -66,7 +66,7 @@ export default function Account({ session }: { session: Session }) {
6666
updated_at: new Date(),
6767
};
6868

69-
const { error } = await supabase.from('profiles').upsert(updates);
69+
const { error } = await supabase.from('auth').upsert(updates);
7070

7171
if (error) {
7272
throw error;
@@ -110,8 +110,10 @@ export default function Account({ session }: { session: Session }) {
110110
disabled={loading}
111111
/>
112112
</View>
113-
<Pressable className="mb-auto items-center pb-5" onPress={() => supabase.auth.signOut()}>
114-
<Text className="font-bold text-black">Log Out</Text>
113+
<Pressable
114+
className="mb-auto items-center bg-red-500 pb-5"
115+
onPress={() => supabase.auth.signOut()}>
116+
<Text className="font-bold text-white">Log Out</Text>
115117
</Pressable>
116118
</LinearGradient>
117119
</View>

0 commit comments

Comments
 (0)