Skip to content

Commit

Permalink
read only rating
Browse files Browse the repository at this point in the history
  • Loading branch information
mulundapm committed Aug 11, 2024
1 parent a3193a6 commit fbcdc59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Components/HighlightedDish.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function HighlightedDish() {
</Stack>
<h3>{dish.restaurantData.name}</h3>
<div className="inline">
<Rating name="disabled" value={dish.ratings}/>
<Rating name="disabled" value={dish.ratings} readOnly/>
<h6>{dish.counts} reviews</h6>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Reviews.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ return (
<div key={index}>
<div className="inline">
<h5>{review.title}</h5>
<Rating name="disabled" value={review.rating}/>
<Rating name="disabled" value={review.rating} readOnly/>
</div>
<p>{review.description}</p>
<br />
Expand Down

0 comments on commit fbcdc59

Please sign in to comment.