Skip to content

Commit f148844

Browse files
authored
Merge pull request element-hq#4989 from vector-im/t3chguy/on_copy_tooltip
generic contextual menu for tooltip/responses
2 parents c140088 + 2316f42 commit f148844

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"matrix-react-sdk": "0.10.3",
7171
"modernizr": "^3.1.0",
7272
"pako": "^1.0.5",
73+
"prop-types": "^15.5.10",
7374
"react": "^15.6.0",
7475
"react-dnd": "^2.1.4",
7576
"react-dnd-html5-backend": "^2.1.2",
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
Copyright 2017 Michael Telatynski <7t3chguy@gmail.com>
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
'use strict';
18+
19+
import React from 'react';
20+
import PropTypes from 'prop-types';
21+
22+
export default class GenericTextContextMenu extends React.Component {
23+
static PropTypes = {
24+
message: PropTypes.string.isRequired,
25+
};
26+
27+
render() {
28+
return <div>{ this.props.message }</div>;
29+
}
30+
}

0 commit comments

Comments
 (0)