Update app/components/repas/menu-card.tsx
All checks were successful
Deploy to Netlify / Deploy to Netlify (push) Successful in 1m13s

This commit is contained in:
Nathan 2026-02-08 20:59:18 +01:00
parent 3ddb63bb26
commit c10cb5b2b1

View file

@ -40,14 +40,16 @@ export function DailyMenu({ meals }: { meals: Meal[] }) {
{meals.length > 1 ? "Menus" : "Menu"} du jour
</h2>
{meals.map((meal, mealIndex) => (
<Card key={mealIndex} className="w-full mb-6">
<CardHeader className="pb-6">
<div className="flex items-center justify-between">
<div className="flex items-center gap-3">
<div>
<CardTitle className="text-xl2 font-bold text-foreground capitalize">
<Utensils className="inline h-5 w-5 mr-4 text-primary" />
{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">
<div className="flex items-center gap-3">
<div>
<CardTitle className="text-xl2 font-bold text-foreground capitalize">
<Utensils className="inline h-5 w-5 mr-4 text-primary" />
{meal.name}
</CardTitle>
</div>