Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #130 from buildo/fix-tcomb-react-types
Browse files Browse the repository at this point in the history
Used exported ReactChildren type from tcomb-react instead of t.ReactChildren reference
  • Loading branch information
FrancescoCioria authored Aug 28, 2017
2 parents 55f7207 + 98a76d7 commit cb9f4b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/PickerTop.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import cx from 'classnames';
import t from 'tcomb';
import { props } from 'tcomb-react';
import { props, ReactChildren } from 'tcomb-react';
import View from 'react-flexview';
import { pure, skinnable } from './utils';

Expand All @@ -13,7 +13,7 @@ import { pure, skinnable } from './utils';
nextDate: t.maybe(t.Function),
previousDate: t.maybe(t.Function),
value: t.union([t.String, t.Number]),
weekDays: t.maybe(t.ReactChildren),
weekDays: t.maybe(ReactChildren),
prevIconClassName: t.String,
nextIconClassName: t.String
})
Expand Down
4 changes: 2 additions & 2 deletions src/Row.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import React from 'react';
import cx from 'classnames';
import t from 'tcomb';
import { props } from 'tcomb-react';
import { props, ReactChildren } from 'tcomb-react';
import View from 'react-flexview';
import { pure, skinnable } from './utils';
import { Mode } from './utils/model';

@pure
@skinnable()
@props({
pickers: t.list(t.ReactChildren),
pickers: t.list(ReactChildren),
mode: Mode
})
export default class Row extends React.Component {
Expand Down

0 comments on commit cb9f4b3

Please sign in to comment.