source: my-react-app/src/components/RestaurantCard.js

main
Last change on this file was cfc16a3, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

RetaurantServiceImpl problemi
isAvailable od tableEntity...

  • Property mode set to 100644
File size: 870 bytes
RevLine 
[cfc16a3]1import React from 'react';
2import StarRating from './StarRating';
3
4const RestaurantCard = ({ restaurant, onDetailClick }) => {
5 return (
6 <div className="col-md-4 mb-4">
7 <div className="card">
8 <div className="card-body">
9 <h5 className="card-title">
10 {restaurant.name} <StarRating rating={restaurant.rating} />
11 </h5>
12 <p className="card-text">{restaurant.cuisineType}</p>
13 <p className="card-text">{restaurant.operatingHours}</p>
14 <p className="card-text">Ul. {restaurant.address}</p>
15 </div>
16 <button onClick={() => onDetailClick(restaurant.restaurantId)} className="btn btn-primary">View Details</button>
17 </div>
18 </div>
19 );
20};
21
22export default RestaurantCard;
Note: See TracBrowser for help on using the repository browser.