Skip to content

Commit efdb3ec

Browse files
committed
build
1 parent 0d72629 commit efdb3ec

2 files changed

Lines changed: 5 additions & 38 deletions

File tree

src/components/ResturantDetailPanel.jsx

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { Card, Image, Button } from "react-bootstrap";
2+
import { Card, Image } from "react-bootstrap";
33
import Tag from "./Tag";
44

55
const FALLBACK_IMAGE = "https://images.unsplash.com/photo-1447933601403-0c6688de566e?auto=format&fit=crop&w=1500&q=80";
@@ -13,7 +13,7 @@ const normalizeTags = (tags) => {
1313
};
1414

1515
export default function RestaurantDetailPanel({ restaurant, onTagClick }) {
16-
const { name, rating, tags = [], address, hours, description, image, imageAlt, image_alt, website, maps_link } = restaurant;
16+
const { name, rating, tags = [], address, hours, description, image, imageAlt, image_alt } = restaurant;
1717
const altText = imageAlt || image_alt;
1818
const normalizedTags = normalizeTags(tags);
1919
const imageSrc = image || FALLBACK_IMAGE;
@@ -63,35 +63,6 @@ export default function RestaurantDetailPanel({ restaurant, onTagClick }) {
6363
</Card.Text>
6464
)}
6565

66-
{(website || maps_link) && (
67-
<div className="mb-3 d-flex gap-2 flex-wrap">
68-
{website && (
69-
<Button
70-
variant="outline-primary"
71-
size="sm"
72-
href={website}
73-
target="_blank"
74-
rel="noopener noreferrer"
75-
aria-label={`Visit ${name} website`}
76-
>
77-
🌐 Website
78-
</Button>
79-
)}
80-
{maps_link && (
81-
<Button
82-
variant="outline-success"
83-
size="sm"
84-
href={maps_link}
85-
target="_blank"
86-
rel="noopener noreferrer"
87-
aria-label={`View ${name} on Google Maps`}
88-
>
89-
📍 View on Maps
90-
</Button>
91-
)}
92-
</div>
93-
)}
94-
9566
{description && (
9667
<>
9768
<h2 className="h5 mt-4">About</h2>

src/pages/ListViewNew.jsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,6 @@ export default function ListView() {
145145
tags: [],
146146
image: imageUrl || null,
147147
image_alt: imageAltText || null,
148-
website: null,
149-
maps_link: null,
150148
list_id: listId,
151149
created_by: user.id
152150
});
@@ -254,9 +252,7 @@ export default function ListView() {
254252
rating: editFormData.rating ? parseFloat(editFormData.rating) : null,
255253
tags: [],
256254
image: imageUrl || null,
257-
image_alt: imageAltText || null,
258-
website: null,
259-
maps_link: null
255+
image_alt: imageAltText || null
260256
});
261257

262258
if (error) {
@@ -296,8 +292,8 @@ export default function ListView() {
296292
const matchesSearch = !normalizedSearch
297293
? true
298294
: (restaurant.name?.toLowerCase().includes(normalizedSearch)) ||
299-
(restaurant.description?.toLowerCase().includes(normalizedSearch)) ||
300-
(restaurant.tags || []).some((tag) => tag.toLowerCase().includes(normalizedSearch));
295+
(restaurant.description?.toLowerCase().includes(normalizedSearch)) ||
296+
(restaurant.tags || []).some((tag) => tag.toLowerCase().includes(normalizedSearch));
301297
const meetsRating = minRating === "any" ? true : (restaurant.rating || 0) >= Number(minRating);
302298
return matchesTag && matchesSearch && meetsRating;
303299
});

0 commit comments

Comments
 (0)