Remove prop-types (#9672)
* Remove prop-types * Remove unused dep rrweb-snapshot * Revert "Remove unused dep rrweb-snapshot" This reverts commit d0d076535f4190a6095fe7684124f50c2d3f137d.pull/28788/head^2
parent
be2a696e6d
commit
5d409560c7
|
@ -102,7 +102,6 @@
|
||||||
"parse5": "^6.0.1",
|
"parse5": "^6.0.1",
|
||||||
"png-chunks-extract": "^1.0.0",
|
"png-chunks-extract": "^1.0.0",
|
||||||
"posthog-js": "1.12.2",
|
"posthog-js": "1.12.2",
|
||||||
"prop-types": "^15.7.2",
|
|
||||||
"qrcode": "1.4.4",
|
"qrcode": "1.4.4",
|
||||||
"re-resizable": "^6.9.0",
|
"re-resizable": "^6.9.0",
|
||||||
"react": "17.0.2",
|
"react": "17.0.2",
|
||||||
|
|
|
@ -15,7 +15,6 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import { MatrixCall } from 'matrix-js-sdk/src/webrtc/call';
|
import { MatrixCall } from 'matrix-js-sdk/src/webrtc/call';
|
||||||
|
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
|
@ -27,11 +26,6 @@ interface IProps extends IContextMenuProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class LegacyCallContextMenu extends React.Component<IProps> {
|
export default class LegacyCallContextMenu extends React.Component<IProps> {
|
||||||
static propTypes = {
|
|
||||||
// js-sdk User object. Not required because it might not exist.
|
|
||||||
user: PropTypes.object,
|
|
||||||
};
|
|
||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,6 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import { MatrixEvent } from "matrix-js-sdk/src/models/event";
|
import { MatrixEvent } from "matrix-js-sdk/src/models/event";
|
||||||
import { Room } from "matrix-js-sdk/src/models/room";
|
import { Room } from "matrix-js-sdk/src/models/room";
|
||||||
import { logger } from "matrix-js-sdk/src/logger";
|
import { logger } from "matrix-js-sdk/src/logger";
|
||||||
|
@ -66,11 +65,6 @@ interface IBridgeStateEvent {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class BridgeTile extends React.PureComponent<IProps> {
|
export default class BridgeTile extends React.PureComponent<IProps> {
|
||||||
static propTypes = {
|
|
||||||
ev: PropTypes.object.isRequired,
|
|
||||||
room: PropTypes.object.isRequired,
|
|
||||||
};
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const content: IBridgeStateEvent = this.props.ev.getContent();
|
const content: IBridgeStateEvent = this.props.ev.getContent();
|
||||||
// Validate
|
// Validate
|
||||||
|
|
Loading…
Reference in New Issue