Skip to content
This repository was archived by the owner on Oct 2, 2025. It is now read-only.

Commit cb83e10

Browse files
committed
prop types deprecated
1 parent 57c5554 commit cb83e10

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

lib/AbsoluteGrid.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
'use strict';
22

3-
import React, { PropTypes, PureComponent, Component } from 'react';
3+
import React, { Component, PureComponent } from 'react';
44
import { debounce, sortBy } from 'lodash';
55

6-
import createDisplayObject from './BaseDisplayObject.jsx';
76
import DragManager from './DragManager.js';
87
import LayoutManager from './LayoutManager.js';
8+
import PropTypes from 'prop-types';
9+
import createDisplayObject from './BaseDisplayObject.jsx';
910

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

lib/BaseDisplayObject.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
'use strict';
22

3-
import React, { PropTypes, PureComponent, Component } from 'react';
3+
import React, { Component, PureComponent } from 'react';
44

55
import LayoutManager from './LayoutManager.js';
6+
import PropTypes from 'prop-types';
67

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"eslint-plugin-react": "^6.10.0",
3333
"lodash": "^4.17.1",
3434
"node-libs-browser": "^2.0.0",
35+
"prop-types": "^15.5.10",
3536
"react": "^15.4.2",
3637
"react-addons-perf": "^15.4.2",
3738
"react-dom": "^15.4.2",

0 commit comments

Comments
 (0)