Skip to content

Commit

Permalink
[*] improve component PropTypes for Col, fixes #98 's error log
Browse files Browse the repository at this point in the history
  • Loading branch information
minwe committed Nov 7, 2016
1 parent 3cabe3a commit 3acfd53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/Col.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, {
PropTypes,
} from 'react';
import cx from 'classnames';
import {component as componentPropType} from './InternalPropTypes';
import ClassNameMixin from './mixins/ClassNameMixin';

import '../scss/components/_grid.scss';
Expand All @@ -11,7 +12,7 @@ const Col = React.createClass({

propTypes: {
classPrefix: PropTypes.string.isRequired,
component: PropTypes.node.isRequired,
component: componentPropType.isRequired,
cols: PropTypes.number,
offset: PropTypes.number,
shrink: PropTypes.bool,
Expand Down

0 comments on commit 3acfd53

Please sign in to comment.