Added markdown pages for privacy policy and credits

This commit is contained in:
2021-02-12 06:03:41 +11:00
parent 0b6c372c55
commit 1c456e70b6
9 changed files with 937 additions and 8 deletions
+4
View File
@@ -5,6 +5,7 @@ import { useCookies } from 'react-cookie';
//library components
import LazyRoute from './lazy-route';
import Markdown from './panels/markdown';
//styling
//TODO: styling import
@@ -45,6 +46,9 @@ const App = props => {
<LazyRoute path='/admin' component={() => import('./pages/admin')} />
<LazyRoute path='/privacypolicy' component={async () => () => <Markdown content={require('../markdown/privacy-policy.md').default} />} />
<LazyRoute path='/credits' component={async () => () => <Markdown content={require('../markdown/credits.md').default} />} />
<LazyRoute path='*' component={() => import('./pages/not-found')} />
</Switch>
<Footer />