Skip to content

Commit

Permalink
[changed] deprecate 'utils/CustomPropTypes' exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKVal committed Jul 25, 2015
1 parent 00b4457 commit f6d32c4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
15 changes: 14 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,17 @@ export Collapse from './Collapse';
export Fade from './Collapse';

export * as FormControls from './FormControls';
export * as utils from './utils';

import childrenValueInputValidation from './utils/childrenValueInputValidation';
import createChainedFunction from './utils/createChainedFunction';
import domUtils from './utils/domUtils';
import ValidComponentChildren from './utils/ValidComponentChildren';
import CustomPropTypes from './utils/CustomPropTypes';

export const utils = {
childrenValueInputValidation,
createChainedFunction,
domUtils,
ValidComponentChildren,
CustomPropTypes
};
7 changes: 6 additions & 1 deletion src/utils/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import deprecationWarning from './deprecationWarning';

export childrenValueInputValidation from './childrenValueInputValidation';
export createChainedFunction from './createChainedFunction';
export CustomPropTypes from './CustomPropTypes';
export domUtils from './domUtils';
export ValidComponentChildren from './ValidComponentChildren';

deprecationWarning('utils/CustomPropTypes', 'npm install react-prop-types',
'https://github.com/react-bootstrap/react-bootstrap/issues/937');
export CustomPropTypes from './CustomPropTypes';

0 comments on commit f6d32c4

Please sign in to comment.