Skip to content

Commit bef22db

Browse files
committed
fix react proptypes deprecation warnings
1 parent 32a92ec commit bef22db

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

examples/parallax-example/components/Svg/Svg.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react';
1+
import React from 'react';
2+
import PropTypes from 'react-proptypes';
23
import style from './Svg.scss';
34

45
export default function Svg(props) {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"license": "ISC",
1818
"dependencies": {
1919
"react": "^15.4.2",
20-
"react-dom": "^15.4.2"
20+
"react-dom": "^15.4.2",
21+
"react-proptypes": "^1.0.0"
2122
},
2223
"devDependencies": {
2324
"babel-core": "^6.23.1",

src/components/Parallax.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react';
1+
import React, { Component } from 'react';
2+
import PropTypes from 'react-proptypes';
23
import { offsetMin, offsetMax } from '../utils/propValidation';
34

45
export default class Parallax extends Component {

0 commit comments

Comments
 (0)