From 2316f4230eb6f19081d2d0cc96baaf947dff4a2d Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 13 Sep 2017 14:23:35 +0100 Subject: [PATCH] install and use prop-types over React.PropTypes Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- package.json | 1 + src/components/views/context_menus/GenericTextContextMenu.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index bc41791b..fba685d1 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,7 @@ "matrix-react-sdk": "0.10.2", "modernizr": "^3.1.0", "pako": "^1.0.5", + "prop-types": "^15.5.10", "react": "^15.6.0", "react-dnd": "^2.1.4", "react-dnd-html5-backend": "^2.1.2", diff --git a/src/components/views/context_menus/GenericTextContextMenu.js b/src/components/views/context_menus/GenericTextContextMenu.js index 92cee781..2319fe05 100644 --- a/src/components/views/context_menus/GenericTextContextMenu.js +++ b/src/components/views/context_menus/GenericTextContextMenu.js @@ -16,7 +16,8 @@ limitations under the License. 'use strict'; -import React, {PropTypes} from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; export default class GenericTextContextMenu extends React.Component { static PropTypes = {