-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
69 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
import React from 'react' | ||
import { Rating } from '@mui/material' | ||
|
||
function Reviews() { | ||
return ( | ||
function Reviews({reviews}) { | ||
return ( | ||
<div> | ||
<div className="review-container"> | ||
<div className="inline"> | ||
<h5>Family friendly</h5> | ||
<Rating name="disabled" value={5}/> | ||
</div> | ||
<p>This place is amazing. Their menu is children friendly as well. Have something for poeple of all ages!</p> | ||
</div> | ||
<div className="review-container"> | ||
<div className="inline"> | ||
<h5>Family friendly</h5> | ||
<Rating name="disabled" value={5}/> | ||
</div> | ||
<p>This place is amazing. Their menu is children friendly as well. Have something for poeple of all ages!</p> | ||
<div> | ||
{reviews.map((review, index)=>( | ||
<div key={index}> | ||
<div className="inline"> | ||
<h5>{review.title}</h5> | ||
<Rating name="disabled" value={review.rating}/> | ||
</div> | ||
<p>{review.description}</p> | ||
<br /> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
) | ||
) | ||
} | ||
|
||
export default Reviews |