main
Last change
on this file since db39d9e was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
670 bytes
|
Line | |
---|
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.