From f75ee680a522cb597b29f890f4df37a1035f839e Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 7 Jul 2025 11:19:59 +0200 Subject: [PATCH] Fix React error #130 - Invalid element type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fixed malformed JSX structure in App.tsx Routes configuration - Added missing service exports in services/index.ts - Added ErrorBoundary wrappers to all admin routes for consistency - Fixed indentation and nesting issues in route definitions This resolves the login and event creation errors. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- backend/data/photo_sharing.db | Bin 77824 -> 77824 bytes frontend/src/App.tsx | 58 ++++++++++++++++----------------- frontend/src/services/index.ts | 7 +++- 3 files changed, 35 insertions(+), 30 deletions(-) diff --git a/backend/data/photo_sharing.db b/backend/data/photo_sharing.db index 2c7fa89adb81487fd63a3349bbd6d3f8f5e9bbdb..d5e4d44173d615de2f4a02e10d73edf1f8232f4b 100644 GIT binary patch delta 34 qcmZp8z|!!5Wr8%L)I=F)MyZVnbNiWPpOtNz@K>K%zT^F(0|fx$(+(^E delta 34 qcmZp8z|!!5Wr8%L_(U0JM)8dabNiXadp~ZP@K>K%!h6P|0|fx!fDNYr diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 3a4dc18..3dd76a6 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -56,37 +56,37 @@ function App() { - {/* Public gallery routes */} - - - - } /> + {/* Public gallery routes */} + + + + } /> - {/* Admin routes */} - - - } /> - }> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - - - - } /> + {/* Admin routes */} + + + } /> + }> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + + + + } /> - {/* Default redirect */} - } /> - + {/* Default redirect */} + } /> + {/* Offline indicator */} diff --git a/frontend/src/services/index.ts b/frontend/src/services/index.ts index b0d1dac..6b31d60 100644 --- a/frontend/src/services/index.ts +++ b/frontend/src/services/index.ts @@ -1,3 +1,8 @@ export { authService } from './auth.service'; export { galleryService } from './gallery.service'; -export { eventsService } from './events.service'; \ No newline at end of file +export { eventsService } from './events.service'; +export { adminService } from './admin.service'; +export { analyticsService } from './analytics.service'; +export { archiveService } from './archive.service'; +export { emailService } from './email.service'; +export { settingsService } from './settings.service'; \ No newline at end of file