Members/officers integration

This commit is contained in:
Michael Fatemi 2020-11-25 21:06:27 -05:00
parent 25b5c2f250
commit 9297e875a0
2 changed files with 14 additions and 0 deletions

View File

@ -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
View File

@ -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
}
}