mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-27 12:42:28 +02:00
improvement: flow coverage
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import styles from './Icon.module.scss';
|
||||
|
||||
const Icon = ({ icon }) => (
|
||||
type Props = {
|
||||
icon: {
|
||||
viewBox?: string,
|
||||
path?: string
|
||||
}
|
||||
};
|
||||
|
||||
const Icon = ({ icon }: Props) => (
|
||||
<svg className={styles['icon']} viewBox={icon.viewBox}>
|
||||
<path d={icon.path} />
|
||||
</svg>
|
||||
|
@@ -1,3 +1,4 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Icon from './Icon';
|
||||
|
@@ -1 +1,2 @@
|
||||
// @flow
|
||||
export { default } from './Icon';
|
||||
|
Reference in New Issue
Block a user