diff --git a/src/components/Header/Header.js b/src/components/Header/Header.js
index 75ac9531..1314d725 100644
--- a/src/components/Header/Header.js
+++ b/src/components/Header/Header.js
@@ -2,6 +2,7 @@
* Copyright (c) 2013-present, Facebook, Inc.
*
* @emails react-core
+ * @flow
*/
'use strict';
@@ -9,7 +10,9 @@
import React from 'react';
import {colors, fonts} from 'theme';
-const Header = ({children}) => (
+import type {Node} from 'react';
+
+const Header = ({children}: {children: Node}) => (
(
+const MarkdownHeader = ({title}: {title: string}) => (
(
);
-MarkdownHeader.propTypes = {
- title: PropTypes.string.isRequired,
-};
-
export default MarkdownHeader;
diff --git a/src/components/MarkdownPage/MarkdownPage.js b/src/components/MarkdownPage/MarkdownPage.js
index c71a90f4..85d82b49 100644
--- a/src/components/MarkdownPage/MarkdownPage.js
+++ b/src/components/MarkdownPage/MarkdownPage.js
@@ -2,6 +2,7 @@
* Copyright (c) 2013-present, Facebook, Inc.
*
* @emails react-core
+ * @flow
*/
'use strict';
@@ -10,7 +11,6 @@ import Container from 'components/Container';
import Flex from 'components/Flex';
import MarkdownHeader from 'components/MarkdownHeader';
import NavigationFooter from 'templates/components/NavigationFooter';
-import PropTypes from 'prop-types';
import React from 'react';
import StickyResponsiveSidebar from 'components/StickyResponsiveSidebar';
import TitleAndMetaTags from 'components/TitleAndMetaTags';
@@ -20,7 +20,7 @@ import {sharedStyles} from 'theme';
import createOgUrl from 'utils/createOgUrl';
const MarkdownPage = ({
- authors,
+ authors = [],
createLink,
date,
enableScrollSync,
@@ -29,6 +29,16 @@ const MarkdownPage = ({
markdownRemark,
sectionList,
titlePostfix = '',
+}: {
+ authors: Array,
+ createLink: Function,
+ date: string,
+ enableScrollSync: boolean,
+ ogDescription: string,
+ location: Object,
+ markdownRemark: Object,
+ sectionList: Array