diff --git a/src/App.tsx b/src/App.tsx index 042e7d61..3574d012 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,10 +1,12 @@ -import { RouterProvider } from 'react-router-dom'; -import router from './routes'; +import { BrowserRouter } from 'react-router-dom'; +import Router from './routes'; const App = () => { return (
- + + +
); }; diff --git a/src/routes.tsx b/src/routes.tsx index 82ab6818..62192be3 100644 --- a/src/routes.tsx +++ b/src/routes.tsx @@ -1,4 +1,4 @@ -import { createHashRouter } from 'react-router-dom'; +import { Route, Routes } from 'react-router-dom'; import MainPage from '@/pages/MainPage'; import AboutUs from '@/pages/About/AboutUs'; import Leadership from '@/pages/About/Leadership'; @@ -19,28 +19,30 @@ import TrisquelPage from '@/pages/TryNow/Trisquel'; import RaspberryPiPage from '@/pages/TryNow/Raspberry'; import MusicBlocksPage from '@/pages/TryNow/MusicBlocks'; -const router = createHashRouter([ - { path: `/`, element: }, - { path: `/about-us`, element: }, - { path: `/leadership`, element: }, - { path: `/contact-us`, element: }, - { path: `/faqs`, element: }, - { path: `/news`, element: }, - { path: `/news/:category`, element: }, - { path: `/news/:category/:slug`, element: }, - { path: `/more`, element: }, - { path: `/more/:slug`, element: }, - { path: `/try-sugar`, element: }, - { path: `/join-development`, element: }, - { path: `/volunteer`, element: }, - { path: `/donate`, element: }, - { path: `/products`, element: }, - { path: `/turtleblocks`, element: }, - { path: `/sugarizer`, element: }, - { path: `/bootablesoas`, element: }, - { path: `/trisquel`, element: }, - { path: `/raspberry`, element: }, - { path: `/musicblocks`, element: }, -]); +const Router = () => ( + + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + +); -export default router; +export default Router;