mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-25 14:29:36 +01:00
Add Flow typing for Sidebar/Contacts
This commit is contained in:
parent
744363e307
commit
1b863ade9e
@ -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) => (
|
||||
|
Loading…
Reference in New Issue
Block a user