mirror of
https://github.com/tjsga/tj-sga-website-react.git
synced 2025-04-09 22:50:17 -04:00
Members/officers integration
This commit is contained in:
parent
25b5c2f250
commit
9297e875a0
|
@ -9,6 +9,8 @@ import initiatives from './pages/initiatives';
|
|||
import news from './pages/news';
|
||||
import newsArticle from './pages/newsArticle';
|
||||
import notFound from './pages/404';
|
||||
import officers from './pages/officers';
|
||||
import committee from './pages/committee';
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
|
@ -18,6 +20,8 @@ export default function App() {
|
|||
<Route path='/initiatives' exact component={initiatives} />
|
||||
<Route path='/news/:articleId' component={newsArticle} />
|
||||
<Route path='/news' exact component={news} />
|
||||
<Route path='/officers' exact component={officers} />
|
||||
<Route path='/committee' exact component={committee} />
|
||||
<Route path='/:path' component={notFound} />
|
||||
<Route path='/' exact component={index} />
|
||||
</Switch>
|
||||
|
|
10
src/index.d.ts
vendored
10
src/index.d.ts
vendored
|
@ -15,4 +15,14 @@ declare namespace SGA {
|
|||
publish_date: string;
|
||||
_id: string;
|
||||
}
|
||||
|
||||
interface MemberDocument {
|
||||
_id: string;
|
||||
name: string;
|
||||
year: string;
|
||||
committee: 'excomm' | 'officer' | 'class';
|
||||
role: string;
|
||||
profile_photo: {};
|
||||
bio: string
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user