added carpool route

This commit is contained in:
Michael Fatemi 2021-07-12 21:38:26 -04:00
parent f199498b81
commit 0fb3e5ce98
2 changed files with 5 additions and 3 deletions

View File

@ -8,6 +8,7 @@ import WheelShare from './WheelShare';
import WheelShareLoggedOut from './WheelShareLoggedOut';
const Authenticator = lazy(() => import('./Authentication/Authenticator'));
const Carpool = lazy(() => import('./Carpool/Carpool'));
const Group = lazy(() => import('./Group'));
const dummyNotificationData: IInvitation[] = [
@ -81,6 +82,7 @@ export default function App() {
component={Authenticator}
path="/auth/:provider/callback"
/>
<Route path="/carpools/:id" component={Carpool} />
</Suspense>
</Switch>
</BrowserRouter>

View File

@ -1,8 +1,8 @@
import { useEffect, useState } from 'react';
import { useParams } from 'react-router-dom';
import { getCarpool } from './api';
import { ICarpool } from './types';
import UISecondaryBox from './UI/UISecondaryBox';
import { getCarpool } from '../api';
import { ICarpool } from '../types';
import UISecondaryBox from '../UI/UISecondaryBox';
function MemberList({ members }: { members: ICarpool['members'] }) {
return (