Skip to content

Commit

Permalink
Merge pull request #21 from Code-4-Community/ja-demo-day-2point5
Browse files Browse the repository at this point in the history
Route Updates and 'Volunteer' page Links to 'My Adopted Green Infrastructure' page
  • Loading branch information
hams7504 authored Apr 18, 2024
2 parents 77fa367 + a50e96f commit 0519210
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ function VolunteerDashboard() {
width: '100%',
}}
>
<Box sx={{ ...boxStyles, height: '50%', width: '100%' }}>
<Link to="my-adopted-gi" style={{ ...boxStyles, textDecoration: 'none', color: 'inherit', width: '100%', height: '50%' }}>
<Box sx={{ ...boxStyles, height: '100%', width: '100%'}}>
My Adopted Green Infrastructure
</Box>
</Link>
<Box
sx={{
display: 'flex',
Expand Down
10 changes: 7 additions & 3 deletions apps/frontend/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@ import ReactDOM from 'react-dom/client';
import { QueryClient, QueryClientProvider } from 'react-query';
import { BrowserRouter, Route, Routes } from 'react-router-dom';
import MapPage from './pages/mapPage/MapPage';
import MyAdoptedGIPage from './pages/myAdoptedGIPage/MyAdoptedGIPage';
import VolunteerPage from './pages/volunteerPage/VolunteerPage';

const queryClient = new QueryClient();

ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
<React.StrictMode>
<QueryClientProvider client={queryClient}>
<BrowserRouter>
<Routes>
<Route path="/" element={<MapPage />} />
</Routes>
<Routes>
<Route path="/" element={<MapPage />} />
<Route path="/volunteer" element={<VolunteerPage />} />
<Route path="/volunteer/my-adopted-gi" element={<MyAdoptedGIPage />} />
</Routes>
</BrowserRouter>
</QueryClientProvider>
</React.StrictMode>,
Expand Down

0 comments on commit 0519210

Please sign in to comment.