mirror of
https://github.com/Sosokker/chefhai.git
synced 2025-12-19 05:54:08 +01:00
Merge pull request #7 from Sosokker/home
feat: horizontal ellipsis in post detail
This commit is contained in:
commit
5d7a1969c6
File diff suppressed because it is too large
Load Diff
10
package-lock.json
generated
10
package-lock.json
generated
@ -46,6 +46,7 @@
|
||||
"react-native": "0.79.2",
|
||||
"react-native-gesture-handler": "~2.24.0",
|
||||
"react-native-reanimated": "^3.16.2",
|
||||
"react-native-responsive-screen": "^1.4.2",
|
||||
"react-native-safe-area-context": "^5.4.0",
|
||||
"react-native-screens": "~4.10.0",
|
||||
"react-native-uuid": "^2.0.3",
|
||||
@ -11072,6 +11073,15 @@
|
||||
"react-native": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/react-native-responsive-screen": {
|
||||
"version": "1.4.2",
|
||||
"resolved": "https://registry.npmjs.org/react-native-responsive-screen/-/react-native-responsive-screen-1.4.2.tgz",
|
||||
"integrity": "sha512-BLYz0UUpeohrib7jbz6wDmtBD5OmiuMRko4IT8kIF63taXPod/c5iZgmWnr5qOnK8hMuKiGMvsM3sC+eHX/lEQ==",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"react-native": ">=0.35"
|
||||
}
|
||||
},
|
||||
"node_modules/react-native-safe-area-context": {
|
||||
"version": "5.4.0",
|
||||
"resolved": "https://registry.npmjs.org/react-native-safe-area-context/-/react-native-safe-area-context-5.4.0.tgz",
|
||||
|
||||
@ -49,6 +49,7 @@
|
||||
"react-native": "0.79.2",
|
||||
"react-native-gesture-handler": "~2.24.0",
|
||||
"react-native-reanimated": "^3.16.2",
|
||||
"react-native-responsive-screen": "^1.4.2",
|
||||
"react-native-safe-area-context": "^5.4.0",
|
||||
"react-native-screens": "~4.10.0",
|
||||
"react-native-uuid": "^2.0.3",
|
||||
|
||||
@ -227,3 +227,11 @@ export const insertGenAIResult = async (
|
||||
|
||||
return { data: foodId, error: null };
|
||||
};
|
||||
|
||||
export async function updateFoodSharing(foodId: string, isShared: boolean) {
|
||||
return await supabase.from("foods").update({ is_shared: isShared }).eq("id", foodId)
|
||||
}
|
||||
|
||||
export async function deleteFood(foodId: string) {
|
||||
return await supabase.from("foods").delete().eq("id", foodId)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user