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 React from 'react';
import { getContactHref, getIcon } from '../../../utils'; import { getContactHref, getIcon } from '../../../utils';
import Icon from '../../Icon'; import Icon from '../../Icon';
import styles from './Contacts.module.scss'; import styles from './Contacts.module.scss';
const Contacts = ({ contacts }) => ( type Props = {|
+contacts: {
[string]: string,
},
|};
const Contacts = ({ contacts }: Props) => (
<div className={styles['contacts']}> <div className={styles['contacts']}>
<ul className={styles['contacts__list']}> <ul className={styles['contacts__list']}>
{Object.keys(contacts).map((name) => ( {Object.keys(contacts).map((name) => (