mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-26 20:22:32 +02:00
improvement: flow coverage
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import type { Entry, WidgetFor } from '../../types';
|
||||
|
||||
const PagePreview = ({ entry, widgetFor }) => {
|
||||
type Props = {
|
||||
entry: Entry,
|
||||
widgetFor: WidgetFor
|
||||
};
|
||||
|
||||
const PagePreview = ({ entry, widgetFor }: Props) => {
|
||||
const body = widgetFor('body');
|
||||
const title = entry.getIn(['data', 'title']);
|
||||
|
||||
|
@@ -1,6 +1,13 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import type { Entry, WidgetFor } from '../../types';
|
||||
|
||||
const PostPreview = ({ entry, widgetFor }) => {
|
||||
type Props = {
|
||||
entry: Entry,
|
||||
widgetFor: WidgetFor
|
||||
};
|
||||
|
||||
const PostPreview = ({ entry, widgetFor }: Props) => {
|
||||
const body = widgetFor('body');
|
||||
const title = entry.getIn(['data', 'title']);
|
||||
|
||||
|
Reference in New Issue
Block a user