mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-08-08 02:18:11 +02:00
Enable Flow Strict
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import { withPrefix, Link } from 'gatsby';
|
||||
import styles from './Author.module.scss';
|
||||
@@ -24,7 +24,7 @@ const Author = ({ author, isIndex }: Props) => (
|
||||
/>
|
||||
</Link>
|
||||
|
||||
{ isIndex ? (
|
||||
{ isIndex === true ? (
|
||||
<h1 className={styles['author__title']}>
|
||||
<Link className={styles['author__title-link']} to="/">{author.name}</Link>
|
||||
</h1>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Author from './Author';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Author';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import { getContactHref, getIcon } from '../../../utils';
|
||||
import Icon from '../../Icon';
|
||||
|
@@ -1,5 +1,5 @@
|
||||
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Contacts from './Contacts';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Contacts';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import styles from './Copyright.module.scss';
|
||||
|
||||
@@ -12,4 +12,4 @@ const Copyright = ({ copyright }: Props) => (
|
||||
</div>
|
||||
);
|
||||
|
||||
export default Copyright;
|
||||
export default Copyright;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Copyright from './Copyright';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Copyright';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import { Link } from 'gatsby';
|
||||
import styles from './Menu.module.scss';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Menu from './Menu';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Menu';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import Author from './Author';
|
||||
import Contacts from './Contacts';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import { useStaticQuery, StaticQuery } from 'gatsby';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Sidebar';
|
||||
|
Reference in New Issue
Block a user