diff --git a/src/routes.tsx b/src/routes.tsx index d7768d14..e0fb1bca 100644 --- a/src/routes.tsx +++ b/src/routes.tsx @@ -1,7 +1,8 @@ -import { Routes, Route } from 'react-router-dom'; +import { HashRouter, Routes, Route } from 'react-router-dom'; import { Suspense, lazy } from 'react'; import { Loader2 } from 'lucide-react'; +// Lazy load your pages const HomePage = lazy(() => import('./pages/Home')); const AboutPage = lazy(() => import('./pages/About')); const FeaturesPage = lazy(() => import('./pages/Features')); @@ -10,6 +11,7 @@ const DevelopersPage = lazy(() => import('./pages/Developers')); const DonatePage = lazy(() => import('./pages/Donate')); const GalleryPage = lazy(() => import('./pages/Gallery')); +// Loading spinner component function LoadingSpinner() { return (
@@ -18,18 +20,21 @@ function LoadingSpinner() { ); } +// AppRoutes component with HashRouter export function AppRoutes() { return ( - }> - - } /> - } /> - } /> - } /> - } /> - } /> - } /> - - + + }> + + } /> + } /> + } /> + } /> + } /> + } /> + } /> + + + ); -} \ No newline at end of file +}