diff --git a/package.json b/package.json index 61fb440c..6866799a 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,7 @@ "matrix-react-sdk": "0.10.3", "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 new file mode 100644 index 00000000..2319fe05 --- /dev/null +++ b/src/components/views/context_menus/GenericTextContextMenu.js @@ -0,0 +1,30 @@ +/* +Copyright 2017 Michael Telatynski <7t3chguy@gmail.com> + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +'use strict'; + +import React from 'react'; +import PropTypes from 'prop-types'; + +export default class GenericTextContextMenu extends React.Component { + static PropTypes = { + message: PropTypes.string.isRequired, + }; + + render() { + return
{ this.props.message }
; + } +}