From 1b863ade9e9e2a1e2ba5fa958b289311bbb30424 Mon Sep 17 00:00:00 2001 From: Victor Zhou Date: Wed, 10 Apr 2019 16:23:17 -0400 Subject: [PATCH] Add Flow typing for Sidebar/Contacts --- src/components/Sidebar/Contacts/Contacts.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/Sidebar/Contacts/Contacts.js b/src/components/Sidebar/Contacts/Contacts.js index 3e07d78..32b76f4 100644 --- a/src/components/Sidebar/Contacts/Contacts.js +++ b/src/components/Sidebar/Contacts/Contacts.js @@ -1,9 +1,16 @@ +// @flow import React from 'react'; import { getContactHref, getIcon } from '../../../utils'; import Icon from '../../Icon'; import styles from './Contacts.module.scss'; -const Contacts = ({ contacts }) => ( +type Props = {| + +contacts: { + [string]: string, + }, +|}; + +const Contacts = ({ contacts }: Props) => (