Remove prop-types (#9672)

* Remove prop-types

* Remove unused dep rrweb-snapshot

* Revert "Remove unused dep rrweb-snapshot"

This reverts commit d0d076535f4190a6095fe7684124f50c2d3f137d.
This commit is contained in:
Michael Telatynski 2022-12-02 16:07:13 +00:00 committed by GitHub
parent be2a696e6d
commit 5d409560c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 13 deletions

View file

@ -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",

View file

@ -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);
} }

View file

@ -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