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

Commit cb9f4b3

Browse files
Merge pull request #130 from buildo/fix-tcomb-react-types
Used exported ReactChildren type from tcomb-react instead of t.ReactChildren reference
2 parents 55f7207 + 98a76d7 commit cb9f4b3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/PickerTop.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import cx from 'classnames';
33
import t from 'tcomb';
4-
import { props } from 'tcomb-react';
4+
import { props, ReactChildren } from 'tcomb-react';
55
import View from 'react-flexview';
66
import { pure, skinnable } from './utils';
77

@@ -13,7 +13,7 @@ import { pure, skinnable } from './utils';
1313
nextDate: t.maybe(t.Function),
1414
previousDate: t.maybe(t.Function),
1515
value: t.union([t.String, t.Number]),
16-
weekDays: t.maybe(t.ReactChildren),
16+
weekDays: t.maybe(ReactChildren),
1717
prevIconClassName: t.String,
1818
nextIconClassName: t.String
1919
})

src/Row.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import React from 'react';
22
import cx from 'classnames';
33
import t from 'tcomb';
4-
import { props } from 'tcomb-react';
4+
import { props, ReactChildren } from 'tcomb-react';
55
import View from 'react-flexview';
66
import { pure, skinnable } from './utils';
77
import { Mode } from './utils/model';
88

99
@pure
1010
@skinnable()
1111
@props({
12-
pickers: t.list(t.ReactChildren),
12+
pickers: t.list(ReactChildren),
1313
mode: Mode
1414
})
1515
export default class Row extends React.Component {

0 commit comments

Comments
 (0)