mirror of
https://github.com/myfatemi04/wheelshare-frontend.git
synced 2025-04-21 19:29:51 -04:00
added carpool route
This commit is contained in:
parent
f199498b81
commit
0fb3e5ce98
|
@ -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>
|
||||
|
|
|
@ -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 (
|
Loading…
Reference in New Issue
Block a user