Skip to content

Commit

Permalink
Merge pull request #41 from diwu1989/master
Browse files Browse the repository at this point in the history
migrate React.PropTypes to prop-types
  • Loading branch information
jrowny authored Apr 1, 2018
2 parents 693d4af + 18d0f5e commit 6eb085d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/AbsoluteGrid.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
'use strict';

import React, { PropTypes, PureComponent, Component } from 'react';
import React, { Component, PureComponent } from 'react';
import { debounce, sortBy } from 'lodash';

import createDisplayObject from './BaseDisplayObject.jsx';
import DragManager from './DragManager.js';
import LayoutManager from './LayoutManager.js';
import PropTypes from 'prop-types';

export default function createAbsoluteGrid(DisplayObject, displayProps = {}, forceImpure = false) {

Expand Down
3 changes: 2 additions & 1 deletion lib/BaseDisplayObject.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
'use strict';

import React, { PropTypes, PureComponent, Component } from 'react';
import React, { Component, PureComponent } from 'react';

import LayoutManager from './LayoutManager.js';
import PropTypes from 'prop-types';

export default function createDisplayObject(DisplayObject, displayProps, forceImpure) {

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"eslint-plugin-react": "^6.10.0",
"lodash": "^4.17.1",
"node-libs-browser": "^2.0.0",
"prop-types": "^15.5.10",
"react": "^15.4.2",
"react-addons-perf": "^15.4.2",
"react-dom": "^15.4.2",
Expand Down

0 comments on commit 6eb085d

Please sign in to comment.