Add Flow typing for Sidebar/Contacts

This commit is contained in:
Victor Zhou 2019-04-10 16:23:17 -04:00
parent 744363e307
commit 1b863ade9e

View File

@ -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) => (
<div className={styles['contacts']}>
<ul className={styles['contacts__list']}>
{Object.keys(contacts).map((name) => (