Hookup Proposal Tutorial (#487)

This commit is contained in:
Daniel Ternyak 2019-12-10 23:54:40 -06:00 committed by GitHub
parent b52d26b9cf
commit 7301d2a4e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View File

@ -33,6 +33,7 @@ const Profile = loadable(() => import('pages/profile'), opts);
const Settings = loadable(() => import('pages/settings'), opts);
const Exception = loadable(() => import('pages/exception'), opts);
const Tos = loadable(() => import('pages/tos'));
const ProposalTutorial = loadable(() => import('pages/proposal-tutorial'));
const About = loadable(() => import('pages/about'), opts);
const Privacy = loadable(() => import('pages/privacy'), opts);
const Contact = loadable(() => import('pages/contact'), opts);
@ -218,6 +219,18 @@ const routeConfigs: RouteConfig[] = [
},
onlyLoggedIn: false,
},
{
// Terms of Service page
route: {
path: '/proposal-tutorial',
component: ProposalTutorial,
exact: true,
},
template: {
title: 'Proposal Tutorial',
},
onlyLoggedIn: false,
},
{
// About page
route: {

View File

@ -0,0 +1,7 @@
import React from 'react';
import MarkdownPage from 'components/MarkdownPage';
import PROPOSAL_TUTORIAL from 'static/markdown/PROPOSAL_TUTORIAL.md';
const ProposalTutorial = () => <MarkdownPage markdown={PROPOSAL_TUTORIAL} />;
export default ProposalTutorial;