mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-08-10 11:20:34 +02:00
improvement: flow coverage
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import { Link } from 'gatsby';
|
||||
import styles from './Menu.module.scss';
|
||||
|
||||
const Menu = ({ menu }) => (
|
||||
type Props = {
|
||||
menu: {
|
||||
label: string,
|
||||
path: string
|
||||
}[]
|
||||
};
|
||||
|
||||
const Menu = ({ menu }: Props) => (
|
||||
<nav className={styles['menu']}>
|
||||
<ul className={styles['menu__list']}>
|
||||
{menu.map((item) => (
|
||||
|
@@ -1,3 +1,4 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Menu from './Menu';
|
||||
|
@@ -1 +1,2 @@
|
||||
// @flow
|
||||
export { default } from './Menu';
|
||||
|
Reference in New Issue
Block a user