From ae504d0f6380cd87bd13e1584ed4aa3f6adb8aec Mon Sep 17 00:00:00 2001 From: Ira Hysi Date: Thu, 5 Dec 2024 00:18:23 -0500 Subject: [PATCH] final venue --- frontend/components/Venue/BookmarkButton.tsx | 2 +- frontend/screens/venue/RateReviewScreen.tsx | 5 +++-- frontend/screens/venue/RatingScreen.tsx | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/components/Venue/BookmarkButton.tsx b/frontend/components/Venue/BookmarkButton.tsx index e09f79f..a876a82 100644 --- a/frontend/components/Venue/BookmarkButton.tsx +++ b/frontend/components/Venue/BookmarkButton.tsx @@ -25,7 +25,7 @@ const BookmarkButton = ({ venueID = "", userID = "" }) => { if (response.ok) { const data = await response.json(); console.log("Bookmark submitted successfully:", data); - const toast = Toast.show("Venue Bookmarked!", { + Toast.show("Venue Bookmarked!", { duration: 800, position: Toast.positions.BOTTOM, backgroundColor: "#ffffff", diff --git a/frontend/screens/venue/RateReviewScreen.tsx b/frontend/screens/venue/RateReviewScreen.tsx index 449c397..15ec958 100644 --- a/frontend/screens/venue/RateReviewScreen.tsx +++ b/frontend/screens/venue/RateReviewScreen.tsx @@ -94,7 +94,7 @@ const RateReviewScreen: React.FC = ({ route, navigation }) => if (response.ok) { const data = await response.json(); console.log("Review submitted successfully:", data); - const toast = Toast.show("Review Submitted!", { + Toast.show("Review Submitted!", { duration: 800, position: Toast.positions.BOTTOM, backgroundColor: "white", @@ -106,7 +106,7 @@ const RateReviewScreen: React.FC = ({ route, navigation }) => } else { const errorData = await response.json(); console.error("Error submitting review:", errorData); - const toast = Toast.show("Error Submitting Review", { + Toast.show("Error Submitting Review", { duration: 800, position: Toast.positions.BOTTOM, backgroundColor: "#ffffff", @@ -199,6 +199,7 @@ RateReviewScreen.propTypes = { venueType: PropTypes.string.isRequired, venueCity: PropTypes.string.isRequired, username: PropTypes.string.isRequired, + venudID: PropTypes.string.isRequired }).isRequired, }).isRequired, navigation: PropTypes.object.isRequired, diff --git a/frontend/screens/venue/RatingScreen.tsx b/frontend/screens/venue/RatingScreen.tsx index 8a62693..3aefbe9 100644 --- a/frontend/screens/venue/RatingScreen.tsx +++ b/frontend/screens/venue/RatingScreen.tsx @@ -68,7 +68,7 @@ const RatingScreen: React.FC<{ venueId: string, personas: object, hype: number, if (response.ok) { const data = await response.json(); console.log('Review submitted successfully:', data); - const toast = Toast.show("Rating Submitted!", { + Toast.show("Rating Submitted!", { duration: 800, position: Toast.positions.CENTER, backgroundColor: "#ffffff", @@ -81,7 +81,7 @@ const RatingScreen: React.FC<{ venueId: string, personas: object, hype: number, } else { const errorData = await response.json(); console.error('Error submitting review:', errorData); - const toast = Toast.show("Error Submitting Rating", { + Toast.show("Error Submitting Rating", { duration: 800, position: Toast.positions.BOTTOM, backgroundColor: "#ffffff",