mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-13 15:29:16 +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 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) => (
|
||||||
|
Loading…
Reference in New Issue
Block a user