2022-04-14 01:19:27 -04:00
|
|
|
import React from 'react';
|
|
|
|
import { Route, Routes } from 'react-router-dom';
|
|
|
|
|
2022-04-25 12:38:10 -04:00
|
|
|
import ConnectionRequired from '../components/ConnectionRequired';
|
2022-06-29 02:56:49 +03:00
|
|
|
import NewUserPage from './NewUserPage';
|
2022-04-14 01:19:27 -04:00
|
|
|
import SearchPage from './search';
|
2022-06-29 03:08:53 +03:00
|
|
|
import UserProfilesPage from './UserProfilesPage';
|
2022-04-14 01:19:27 -04:00
|
|
|
|
|
|
|
const AppRoutes = () => (
|
|
|
|
<Routes>
|
|
|
|
<Route path='/'>
|
2022-04-22 14:27:28 -04:00
|
|
|
<Route
|
|
|
|
path='search.html'
|
|
|
|
element={
|
2022-04-25 12:38:10 -04:00
|
|
|
<ConnectionRequired>
|
2022-04-22 14:27:28 -04:00
|
|
|
<SearchPage />
|
2022-04-25 12:38:10 -04:00
|
|
|
</ConnectionRequired>
|
2022-04-22 14:27:28 -04:00
|
|
|
}
|
|
|
|
/>
|
2022-06-29 02:56:49 +03:00
|
|
|
<Route
|
|
|
|
path='usernew.html'
|
|
|
|
element={
|
|
|
|
<ConnectionRequired>
|
|
|
|
<NewUserPage />
|
|
|
|
</ConnectionRequired>
|
|
|
|
}
|
|
|
|
/>
|
2022-06-29 03:08:53 +03:00
|
|
|
<Route
|
|
|
|
path='userprofiles.html'
|
|
|
|
element={
|
|
|
|
<ConnectionRequired>
|
|
|
|
<UserProfilesPage />
|
|
|
|
</ConnectionRequired>
|
|
|
|
}
|
|
|
|
/>
|
2022-04-14 01:19:27 -04:00
|
|
|
{/* Suppress warnings for unhandled routes */}
|
|
|
|
<Route path='*' element={null} />
|
|
|
|
</Route>
|
|
|
|
</Routes>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default AppRoutes;
|