Skip to content

Commit

Permalink
fix(atoms): fix flow annotation to avoid proptypes generating error
Browse files Browse the repository at this point in the history
  • Loading branch information
ej9x committed Sep 14, 2018
1 parent 92bd414 commit d5acf2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/atoms/dataEntry/Form/FormPlate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import React from 'react';

import { createStyledTag, createTheme } from '../../../utils';
import { FlexLayout, type FlexLayoutCommonProps } from '../../FlexLayout/FlexLayout';
import { FlexLayout } from '../../FlexLayout/FlexLayout';

type FormPlateProps = {
/** callback called on form submit */
Expand All @@ -14,7 +14,7 @@ type FormPlateProps = {
children?: React$Node,
/** component to use instead of form tag */
component?: React$Node,
} & FlexLayoutCommonProps;
};

const name = 'formPlate';

Expand Down
4 changes: 2 additions & 2 deletions src/atoms/dataEntry/Form/FormSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import React from 'react';

import { FlexLayout, type FlexLayoutCommonProps } from '../../FlexLayout/FlexLayout';
import { FlexLayout } from '../../FlexLayout/FlexLayout';

type FormSectionProps = {
direction?: 'column' | 'row',
stretch?: boolean,
children: React$Node,
} & FlexLayoutCommonProps;
};

const FormSection = ({ ...rest }: FormSectionProps) => {
return (
Expand Down

0 comments on commit d5acf2b

Please sign in to comment.