Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/detail restaurant #53

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/ui/FoodCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const FoodCard = ({ image, rating, restaurant, name, address, price, id, restaur
}}
/>
<div className='absolute top-2 right-2 flex items-center justify-center text-[15px] font-medium gap-1 px-[5px] py-[3px] rounded-3xl min-w-[70px] bg-white bg-opacity-80 shadow-md'>
<p>{rating}/5</p>
<p>{rating.toFixed(1)}/5</p>
<StarRateIcon className='text-yellow-500' sx={{ fontSize: '18px' }} />
</div>
<div className='absolute inset-0 bottom-2 flex justify-center items-end'>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/RestaurantCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const RestaurantCard = ({ image, rating, restaurant, address, id }) => {
}}
>
<div className='justify-center items-center ml-auto text-[12px] sm:text-[15px] font-medium flex gap-1 px-[5px] py-[3px] rounded-3xl min-w-[70px] bg-white bg-opacity-80 mt-2 mr-2'>
<p>{rating}/5</p>
<p>{rating.toFixed(1)}/5</p>
<StarRateIcon className='text-yellow-500' sx={{ fontSize: '18px' }} />
</div>
</div>
Expand Down
Loading