feat: add markdown editor for event description and update event forms

- Added @uiw/react-md-editor dependency for rich text editing.
- Implemented dynamic loading of the markdown editor in create and edit event forms.
- Updated event forms to include new fields for 'apellidos', 'genero', and 'rfc'.
- Refactored event and questionnaire pages to improve data fetching and rendering.
- Removed unnecessary Excel files from the public directory.
- Enhanced error handling and logging in event creation and form submission processes.
- Updated carousel component to handle empty image arrays gracefully.
- Created a new FormularioPage component to streamline questionnaire rendering.
This commit is contained in:
miguel
2025-06-18 15:51:17 -06:00
parent ea9f3b72f7
commit e092eeec4d
20 changed files with 1195 additions and 79 deletions
+2 -4
View File
@@ -9,11 +9,9 @@ export interface CarouselProps {
}[];
}
export default function Carousel({ id, images }: CarouselProps) {
console.log('Carousel images:', images);
export default function Carousel({ id="carousel-banners-eventos", images }: CarouselProps) {
if (!images || images.length === 0) {
return <div>No hay imágenes para mostrar</div>;
return <div></div>;
}
return (