missions mission pages

This commit is contained in:
alma 2025-05-06 21:27:33 +02:00
parent 625af17b45
commit c854b0c069

View File

@ -920,17 +920,6 @@ export function CalendarClient({ initialCalendars, userId, userProfile }: Calend
<Card className="p-4">
<div className="flex items-center justify-between mb-4">
<div className="flex items-center gap-4">
<Button
variant="outline"
onClick={() => {
setSelectedCalendar(null);
setIsCalendarModalOpen(true);
}}
className="bg-white hover:bg-gray-50 text-gray-900 border-gray-200"
>
<Plus className="mr-2 h-4 w-4" />
<span className="font-medium">Nouveau calendrier</span>
</Button>
<Button
onClick={() => {
setSelectedEvent(null);
@ -1215,7 +1204,7 @@ export function CalendarClient({ initialCalendars, userId, userProfile }: Calend
className={`flex items-center gap-2 px-3 py-2 rounded-lg transition-all ${
eventForm.calendarId === cal.id
? 'bg-white ring-2 ring-primary'
: 'bg-gray-900 hover:bg-gray-800'
: 'bg-white hover:bg-gray-50 border border-gray-200'
}`}
>
<div
@ -1225,7 +1214,7 @@ export function CalendarClient({ initialCalendars, userId, userProfile }: Calend
<span className={`text-sm ${
eventForm.calendarId === cal.id
? 'font-medium text-gray-900'
: 'text-gray-100'
: 'text-gray-700'
}`}>
{cal.name}
</span>
@ -1350,10 +1339,15 @@ export function CalendarClient({ initialCalendars, userId, userProfile }: Calend
variant="outline"
onClick={() => setIsEventModalOpen(false)}
disabled={loading}
className="bg-white hover:bg-gray-50 text-gray-900 border-gray-200"
>
Annuler
</Button>
<Button onClick={handleEventSubmit} disabled={loading}>
<Button
onClick={handleEventSubmit}
disabled={loading}
className="bg-blue-600 hover:bg-blue-700 text-white"
>
{loading ? (
<>
<Loader2 className="mr-2 h-4 w-4 animate-spin" />