Skip to content

Commit

Permalink
🐛 Fix select item HTML hydration issue
Browse files Browse the repository at this point in the history
  • Loading branch information
micahlt committed Jul 17, 2024
1 parent f76f03f commit fd4c590
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/components/admin/FoodList.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,19 @@ export default function FoodList({
.map((food) => (
<SearchSelectItem
value={food._id}
className="cursor-pointer"
className="cursor-pointer searchselectorderinvert"
key={food._id}
icon={() => (
<RatingBadge
rating={food.rating}
ratingCount={food.ratings}
showIcon={false}
size="xs"
className="ml-2 order-last"
/>
)}
>
{uppercaseFirstLetter(food.name)}
<RatingBadge
rating={food.rating}
ratingCount={food.ratings}
showIcon={false}
size="xs"
className="ml-2"
/>
</SearchSelectItem>
))}
</SearchSelect>
Expand Down

1 comment on commit fd4c590

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for mc-caf-data ready!

✅ Preview
https://mc-caf-data-mn73r91sk-thecafapp.vercel.app

Built with commit fd4c590.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.