Skip to content

Commit

Permalink
Upgrade react-prop-types
Browse files Browse the repository at this point in the history
  • Loading branch information
taion committed Jul 29, 2016
1 parent 7965346 commit 4998086
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"dependencies": {
"classnames": "^2.2.5",
"dom-helpers": "^2.4.0",
"react-prop-types": "^0.3.2",
"react-prop-types": "^0.4.0",
"warning": "^3.0.0"
}
}
4 changes: 2 additions & 2 deletions src/AutoAffix.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import getOffset from 'dom-helpers/query/offset';
import requestAnimationFrame from 'dom-helpers/util/requestAnimationFrame';
import React from 'react';
import mountable from 'react-prop-types/lib/mountable';
import componentOrElement from 'react-prop-types/lib/componentOrElement';

import Affix from './Affix';
import addEventListener from './utils/addEventListener';
Expand Down Expand Up @@ -155,7 +155,7 @@ AutoAffix.propTypes = {
* of viewport, or a function that returns it
*/
container: React.PropTypes.oneOfType([
mountable,
componentOrElement,
React.PropTypes.func
]),
/**
Expand Down
4 changes: 2 additions & 2 deletions src/Modal.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*eslint-disable react/prop-types */
import React, { cloneElement } from 'react';
import warning from 'warning';
import mountable from 'react-prop-types/lib/mountable';
import componentOrElement from 'react-prop-types/lib/componentOrElement';
import elementType from 'react-prop-types/lib/elementType';

import Portal from './Portal';
Expand Down Expand Up @@ -54,7 +54,7 @@ const Modal = React.createClass({
* page content can be placed behind a virtual backdrop as well as a visual one.
*/
container: React.PropTypes.oneOfType([
mountable,
componentOrElement,
React.PropTypes.func
]),

Expand Down
4 changes: 2 additions & 2 deletions src/Portal.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';
import mountable from 'react-prop-types/lib/mountable';
import componentOrElement from 'react-prop-types/lib/componentOrElement';
import ownerDocument from './utils/ownerDocument';
import getContainer from './utils/getContainer';

Expand All @@ -19,7 +19,7 @@ let Portal = React.createClass({
* appended to it.
*/
container: React.PropTypes.oneOfType([
mountable,
componentOrElement,
React.PropTypes.func
])
},
Expand Down
6 changes: 3 additions & 3 deletions src/Position.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import classNames from 'classnames';
import React, { cloneElement } from 'react';
import ReactDOM from 'react-dom';
import mountable from 'react-prop-types/lib/mountable';
import componentOrElement from 'react-prop-types/lib/componentOrElement';

import calculatePosition from './utils/calculatePosition';
import getContainer from './utils/getContainer';
Expand Down Expand Up @@ -131,14 +131,14 @@ Position.propTypes = {
* be positioned next to the `target` specified.
*/
target: React.PropTypes.oneOfType([
mountable, React.PropTypes.func
componentOrElement, React.PropTypes.func
]),

/**
* "offsetParent" of the component
*/
container: React.PropTypes.oneOfType([
mountable, React.PropTypes.func
componentOrElement, React.PropTypes.func
]),
/**
* Minimum spacing in pixels between container border and component border
Expand Down

0 comments on commit 4998086

Please sign in to comment.