Refactor event management and UI components: Update date handling in EventManagement to format dates for input, enhance EventsSection to display a message when no events are available, and improve styling in multiple components for better layout consistency.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3m36s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3m36s
This commit is contained in:
@@ -151,8 +151,10 @@ export default function EventManagement() {
|
||||
const handleEdit = (event: Event) => {
|
||||
setEditingEvent(event);
|
||||
setIsCreating(false);
|
||||
// Convertir la date ISO en format YYYY-MM-DD pour l'input date
|
||||
const dateValue = event.date ? new Date(event.date).toISOString().split('T')[0] : "";
|
||||
setFormData({
|
||||
date: event.date,
|
||||
date: dateValue,
|
||||
name: event.name,
|
||||
description: event.description,
|
||||
type: event.type,
|
||||
|
||||
Reference in New Issue
Block a user