mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-08-08 02:18:11 +02:00
improvement: flow coverage
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
import React, { useRef, useEffect } from 'react';
|
||||
import styles from './Page.module.scss';
|
||||
|
||||
const Page = ({ title, children }) => {
|
||||
type Props = {
|
||||
title?: string,
|
||||
children: React.Node
|
||||
};
|
||||
|
||||
const Page = ({ title, children }: Props) => {
|
||||
const pageRef = useRef();
|
||||
|
||||
useEffect(() => {
|
||||
|
@@ -1,3 +1,4 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Page from './Page';
|
||||
|
@@ -1 +1,2 @@
|
||||
// @flow
|
||||
export { default } from './Page';
|
||||
|
Reference in New Issue
Block a user