mirror of
https://github.com/myfatemi04/wheelshare-frontend.git
synced 2025-04-21 11:20:17 -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';
|
import WheelShareLoggedOut from './WheelShareLoggedOut';
|
||||||
|
|
||||||
const Authenticator = lazy(() => import('./Authentication/Authenticator'));
|
const Authenticator = lazy(() => import('./Authentication/Authenticator'));
|
||||||
|
const Carpool = lazy(() => import('./Carpool/Carpool'));
|
||||||
const Group = lazy(() => import('./Group'));
|
const Group = lazy(() => import('./Group'));
|
||||||
|
|
||||||
const dummyNotificationData: IInvitation[] = [
|
const dummyNotificationData: IInvitation[] = [
|
||||||
|
@ -81,6 +82,7 @@ export default function App() {
|
||||||
component={Authenticator}
|
component={Authenticator}
|
||||||
path="/auth/:provider/callback"
|
path="/auth/:provider/callback"
|
||||||
/>
|
/>
|
||||||
|
<Route path="/carpools/:id" component={Carpool} />
|
||||||
</Suspense>
|
</Suspense>
|
||||||
</Switch>
|
</Switch>
|
||||||
</BrowserRouter>
|
</BrowserRouter>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { useParams } from 'react-router-dom';
|
import { useParams } from 'react-router-dom';
|
||||||
import { getCarpool } from './api';
|
import { getCarpool } from '../api';
|
||||||
import { ICarpool } from './types';
|
import { ICarpool } from '../types';
|
||||||
import UISecondaryBox from './UI/UISecondaryBox';
|
import UISecondaryBox from '../UI/UISecondaryBox';
|
||||||
|
|
||||||
function MemberList({ members }: { members: ICarpool['members'] }) {
|
function MemberList({ members }: { members: ICarpool['members'] }) {
|
||||||
return (
|
return (
|
Loading…
Reference in New Issue
Block a user