Skip to content

Commit

Permalink
final venue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ira Hysi authored and Ira Hysi committed Dec 5, 2024
1 parent 14259d5 commit ae504d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/components/Venue/BookmarkButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 3 additions & 2 deletions frontend/screens/venue/RateReviewScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const RateReviewScreen: React.FC<ReviewScreenProps> = ({ 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",
Expand All @@ -106,7 +106,7 @@ const RateReviewScreen: React.FC<ReviewScreenProps> = ({ 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",
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions frontend/screens/venue/RatingScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit ae504d0

Please sign in to comment.