mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-08-03 16:13:01 +02:00
improvement: flow coverage
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import Helmet from 'react-helmet';
|
||||
import type { Node as ReactNode } from 'react';
|
||||
import styles from './Layout.module.scss';
|
||||
|
||||
const Layout = ({ children, title, description }) => (
|
||||
type Props = {
|
||||
children: ReactNode,
|
||||
title: string,
|
||||
description?: string
|
||||
};
|
||||
|
||||
const Layout = ({ children, title, description }: Props) => (
|
||||
<div className={styles.layout}>
|
||||
<Helmet>
|
||||
<html lang="en" />
|
||||
|
@@ -1,3 +1,4 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Layout from './Layout';
|
||||
|
@@ -1 +1,2 @@
|
||||
// @flow
|
||||
export { default } from './Layout';
|
||||
|
Reference in New Issue
Block a user