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