Upgrade to react 16
[aai/sparky-fe.git] / src / generic-components / graph / Node.jsx
index 0b96f2a..6de4715 100644 (file)
  * ============LICENSE_END=========================================================
  */
 import React, {Component} from 'react';
+import { PropTypes } from 'prop-types';
 
 class Node extends Component {
                
                static propTypes = {
-                               x: React.PropTypes.number,
-                               y: React.PropTypes.number,
-                               nodeClass: React.PropTypes.string,
-                               visualElements: React.PropTypes.array,
-                               meta: React.PropTypes.object
+                               x: PropTypes.number,
+                               y: PropTypes.number,
+                               nodeClass: PropTypes.string,
+                               visualElements: PropTypes.array,
+                               meta: PropTypes.object
                };
                
                static defaultProps = {