diff --git a/package.json b/package.json index 977b39a062..b71e934a83 100644 --- a/package.json +++ b/package.json @@ -102,7 +102,6 @@ "parse5": "^6.0.1", "png-chunks-extract": "^1.0.0", "posthog-js": "1.12.2", - "prop-types": "^15.7.2", "qrcode": "1.4.4", "re-resizable": "^6.9.0", "react": "17.0.2", diff --git a/src/components/views/context_menus/LegacyCallContextMenu.tsx b/src/components/views/context_menus/LegacyCallContextMenu.tsx index 1f52fa2637..3ca79a8e22 100644 --- a/src/components/views/context_menus/LegacyCallContextMenu.tsx +++ b/src/components/views/context_menus/LegacyCallContextMenu.tsx @@ -15,7 +15,6 @@ limitations under the License. */ import React from 'react'; -import PropTypes from 'prop-types'; import { MatrixCall } from 'matrix-js-sdk/src/webrtc/call'; import { _t } from '../../../languageHandler'; @@ -27,11 +26,6 @@ interface IProps extends IContextMenuProps { } export default class LegacyCallContextMenu extends React.Component { - static propTypes = { - // js-sdk User object. Not required because it might not exist. - user: PropTypes.object, - }; - constructor(props) { super(props); } diff --git a/src/components/views/settings/BridgeTile.tsx b/src/components/views/settings/BridgeTile.tsx index 08517bd833..626c8b4ea6 100644 --- a/src/components/views/settings/BridgeTile.tsx +++ b/src/components/views/settings/BridgeTile.tsx @@ -15,7 +15,6 @@ limitations under the License. */ import React from 'react'; -import PropTypes from 'prop-types'; import { MatrixEvent } from "matrix-js-sdk/src/models/event"; import { Room } from "matrix-js-sdk/src/models/room"; import { logger } from "matrix-js-sdk/src/logger"; @@ -66,11 +65,6 @@ interface IBridgeStateEvent { } export default class BridgeTile extends React.PureComponent { - static propTypes = { - ev: PropTypes.object.isRequired, - room: PropTypes.object.isRequired, - }; - render() { const content: IBridgeStateEvent = this.props.ev.getContent(); // Validate