main
Last change
on this file since 5a9c93b was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
670 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import React from 'react';
|
---|
| 2 | import StarRating from "./StarRating";
|
---|
| 3 |
|
---|
| 4 | const RestaurantInfo = ({ restaurant }) => {
|
---|
| 5 | return (
|
---|
| 6 | <div className="card-body">
|
---|
| 7 | <h2>
|
---|
| 8 | {restaurant.name} <StarRating key={restaurant.id} rating={restaurant.rating}/>
|
---|
| 9 | </h2>
|
---|
| 10 | <p className="card-text">{restaurant.cuisineType}</p> {/* Assuming cuisineType is provided */}
|
---|
| 11 | <p className="card-text">{restaurant.operatingHours}</p> {/* Assuming operatingHours is provided */}
|
---|
| 12 | <p className="card-text">Ul. {restaurant.address}</p> {/* Assuming address is provided */}
|
---|
| 13 | </div>
|
---|
| 14 | );
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | export default RestaurantInfo;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.