Update app/components/repas/menu-card.tsx
All checks were successful
Deploy to Netlify / Deploy to Netlify (push) Successful in 1m13s
All checks were successful
Deploy to Netlify / Deploy to Netlify (push) Successful in 1m13s
This commit is contained in:
parent
3ddb63bb26
commit
c10cb5b2b1
1 changed files with 10 additions and 8 deletions
|
|
@ -40,7 +40,9 @@ export function DailyMenu({ meals }: { meals: Meal[] }) {
|
|||
{meals.length > 1 ? "Menus" : "Menu"} du jour
|
||||
</h2>
|
||||
|
||||
{meals.map((meal, mealIndex) => (
|
||||
{meals
|
||||
.sort((a, b) => a.name.localeCompare(b.name))
|
||||
.map((meal, mealIndex) => (
|
||||
<Card key={mealIndex} className="w-full mb-6">
|
||||
<CardHeader className="pb-6">
|
||||
<div className="flex items-center justify-between">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue