Upgrade to react 16
[aai/sparky-fe.git] / src / generic-components / graph / SVGShape.jsx
index 0ee31fd..b06c46f 100644 (file)
  * ============LICENSE_END=========================================================
  */
 import React, {Component} from 'react';
+import { PropTypes } from 'prop-types';
 import NodeVisualElementConstants from './NodeVisualElementConstants';
 
 class SVGShape extends Component {
                
                static propTypes = {
-                               shapeType: React.PropTypes.string.isRequired,
-                               shapeAttributes: React.PropTypes.object.isRequired,
-                               shapeClass: React.PropTypes.object.isRequired,
-                               textValue: React.PropTypes.string
+                               shapeType: PropTypes.string.isRequired,
+                               shapeAttributes: PropTypes.object.isRequired,
+                               shapeClass: PropTypes.object.isRequired,
+                               textValue: PropTypes.string
                };
                
                static defaultProps = {