improvement: flow coverage

This commit is contained in:
alxshelepenok
2019-05-10 02:15:43 +03:00
parent 091834f16a
commit 35f2170bf5
66 changed files with 308 additions and 56 deletions

View File

@@ -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']);

View File

@@ -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']);