mirror of
				https://github.com/mastermindzh/rickvanlieshout.com
				synced 2025-10-31 00:29:46 +01:00 
			
		
		
		
	Add Flow typing for Sidebar/Contacts
This commit is contained in:
		| @@ -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) => ( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user