Skip to content

Commit

Permalink
Merge pull request #4989 from vector-im/t3chguy/on_copy_tooltip
Browse files Browse the repository at this point in the history
generic contextual menu for tooltip/responses
  • Loading branch information
dbkr authored Sep 13, 2017
2 parents c140088 + 2316f42 commit f148844
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
30 changes: 30 additions & 0 deletions src/components/views/context_menus/GenericTextContextMenu.js
Original file line number Diff line number Diff line change
@@ -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 <div>{ this.props.message }</div>;
}
}

0 comments on commit f148844

Please sign in to comment.