Merge pull request #7 from Sosokker/home

feat: horizontal ellipsis in post detail
This commit is contained in:
Tantikon P. 2025-05-13 00:30:28 +07:00 committed by GitHub
commit 5d7a1969c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 361 additions and 413 deletions

File diff suppressed because it is too large Load Diff

10
package-lock.json generated
View File

@ -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",

View File

@ -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",

View File

@ -226,4 +226,12 @@ 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)
}