Remove extra layout from Flatpages
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import { observer } from 'mobx-react';
|
||||
|
||||
import Layout, { Title } from 'components/Layout';
|
||||
import CenteredContent from 'components/CenteredContent';
|
||||
import { DocumentHtml } from 'components/Document';
|
||||
import PageTitle from 'components/PageTitle';
|
||||
@@ -21,12 +19,10 @@ type Props = {
|
||||
const { title, content } = this.props;
|
||||
|
||||
return (
|
||||
<Layout title={<Title content={title} />} search={false}>
|
||||
<CenteredContent>
|
||||
<PageTitle title={title} />
|
||||
<CenteredContent>
|
||||
<DocumentHtml html={convertToMarkdown(content)} />
|
||||
</CenteredContent>
|
||||
</Layout>
|
||||
<DocumentHtml html={convertToMarkdown(content)} />
|
||||
</CenteredContent>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user