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