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