From 744363e307e236675fc872e1d9c2a43ccd50531e Mon Sep 17 00:00:00 2001 From: Victor Zhou Date: Wed, 10 Apr 2019 16:21:54 -0400 Subject: [PATCH] Add Flow Typing for Post/Author.js --- src/components/Post/Author/Author.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/Post/Author/Author.js b/src/components/Post/Author/Author.js index 36c6563..f268e04 100644 --- a/src/components/Post/Author/Author.js +++ b/src/components/Post/Author/Author.js @@ -1,9 +1,10 @@ +// @flow import React from 'react'; import { graphql, StaticQuery } from 'gatsby'; import { getContactHref } from '../../../utils'; import styles from './Author.module.scss'; -export const PureAuthor = ({ data }) => { +export const PureAuthor = ({ data }: Object) => { const { author } = data.site.siteMetadata; return ( @@ -23,7 +24,7 @@ export const PureAuthor = ({ data }) => { ); }; -export const Author = (props) => ( +export const Author = () => ( ( author { name bio - contacts { + contacts { twitter } } @@ -40,7 +41,7 @@ export const Author = (props) => ( } } `} - render={(data) => } + render={(data) => } /> );