diff --git a/website/src/components/layout/index.js b/website/src/components/layout/index.js
index 8467a1d7c..a2459d357 100644
--- a/website/src/components/layout/index.js
+++ b/website/src/components/layout/index.js
@@ -69,13 +69,6 @@ class Layout extends React.Component {
}
static propTypes = {
- data: PropTypes.shape({
- mdx: PropTypes.shape({
- code: PropTypes.shape({
- body: PropTypes.string.isRequired,
- }).isRequired,
- }),
- }).isRequired,
scope: PropTypes.object.isRequired,
pageContext: PropTypes.shape({
title: PropTypes.string,
@@ -102,18 +95,11 @@ class Layout extends React.Component {
}
render() {
- const { data, pageContext, location, children } = this.props
- const { file, site = {} } = data || {}
- const mdx = file ? file.childMdx : null
+ const { pageContext, location, children } = this.props
const { title, section, sectionTitle, teaser, theme = 'blue', searchExclude } = pageContext
const uiTheme = nightly ? 'nightly' : legacy ? 'legacy' : theme
const bodyClass = classNames(`theme-${uiTheme}`, { 'search-exclude': !!searchExclude })
const isDocs = ['usage', 'models', 'api', 'styleguide'].includes(section)
- const content = !mdx ? null : (
-