Browse Source

Add Todo notes and better flow types

main
tricinel 7 years ago
parent
commit
ab5815b11a
  1. 10
      src/components/MarkdownPage/MarkdownPage.js

10
src/components/MarkdownPage/MarkdownPage.js

@ -19,15 +19,17 @@ import toCommaSeparatedList from 'utils/toCommaSeparatedList';
import {sharedStyles} from 'theme'; import {sharedStyles} from 'theme';
import createOgUrl from 'utils/createOgUrl'; import createOgUrl from 'utils/createOgUrl';
import type {Node} from 'types';
type Props = { type Props = {
authors: Array<string>, authors: Array<string>,
createLink: Function, createLink: Function, // TODO: Add better flow type once we Flow-type createLink
date?: string, date?: string,
enableScrollSync?: boolean, enableScrollSync?: boolean,
ogDescription: string, ogDescription: string,
location: Object, location: Location,
markdownRemark: Object, markdownRemark: Node,
sectionList: Array<Object>, sectionList: Array<Object>, // TODO: Add better flow type once we have the Section component
titlePostfix: string, titlePostfix: string,
}; };

Loading…
Cancel
Save