Skip to content

Commit 781e4c8

Browse files
committed
merge conflict
2 parents f6889e8 + 5a41276 commit 781e4c8

File tree

3 files changed

+7
-177
lines changed

3 files changed

+7
-177
lines changed

frontend/app/(restaurant)/[id].tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ import { Skeleton } from "moti/skeleton";
2020
import { getRestaurantReviews, getRestaurantReviewsByUser, getReviews } from "@/api/reviews";
2121
import { TReview } from "@/types/review";
2222
import { useUser } from "@/context/user-context";
23+
<<<<<<< HEAD
2324
import { TMenuItem } from "@/types/menu-item";
2425
import { getMenuItemsByRestaurant } from "@/api/menu-items";
26+
=======
27+
>>>>>>> origin
2528

2629
export default function Route() {
2730
const restaurantTags = ["Fast Food", "Fried Chicken", "Chicken Sandwiches", "Order Online"];
@@ -60,10 +63,13 @@ export default function Route() {
6063
setReviews(res);
6164
});
6265

66+
<<<<<<< HEAD
6367
getMenuItemsByRestaurant(id).then((res) => {
6468
setMenuItems(res);
6569
});
6670

71+
=======
72+
>>>>>>> origin
6773
getRestaurantReviewsByUser(id, user.id).then((res) => {
6874
console.log(res);
6975
setMyReviews(res);

frontend/app/(tabs)/index/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default function Feed() {
9595
// use the recommendations endpoint to get the top 10 items
9696
const topItems = await getRecommendations(user?.id);
9797
// convert top items _id to id
98-
topItems.forEach((item) => (item.id = item._id));
98+
topItems.forEach((item) => (item.id = item.id));
9999
console.log(topItems);
100100
setFeedItems(topItems.map((item) => ({ id: item.id, type: "menuItem", data: item })));
101101
break;

frontend/components/UserProfile.tsx

Lines changed: 0 additions & 176 deletions
This file was deleted.

0 commit comments

Comments
 (0)