mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-10-26 14:26:46 +01:00
improvement: flow coverage
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import styles from './Content.module.scss';
|
||||
|
||||
const Content = ({ body, title }) => (
|
||||
type Props = {
|
||||
body: string,
|
||||
title: string
|
||||
};
|
||||
|
||||
const Content = ({ body, title }: Props) => (
|
||||
<div className={styles['content']}>
|
||||
<h1 className={styles['content__title']}>{title}</h1>
|
||||
<div className={styles['content__body']} dangerouslySetInnerHTML={{ __html: body }} />
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Content from './Content';
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
// @flow
|
||||
export { default } from './Content';
|
||||
|
||||
Reference in New Issue
Block a user