mirror of
https://github.com/element-hq/element-web
synced 2024-11-29 04:48:50 +03:00
Remove replaceableComponentTs from BridgeTile
This commit is contained in:
parent
000a69765c
commit
448a5ea42d
2 changed files with 0 additions and 11 deletions
|
@ -22,7 +22,6 @@ import {MatrixClientPeg} from "../../../MatrixClientPeg";
|
|||
import Pill from "../elements/Pill";
|
||||
import {makeUserPermalink} from "../../../utils/permalinks/Permalinks";
|
||||
import BaseAvatar from "../avatars/BaseAvatar";
|
||||
import {replaceableComponentTs} from "../../../utils/replaceableComponent";
|
||||
import SettingsStore from "../../../settings/SettingsStore";
|
||||
import {MatrixEvent} from "matrix-js-sdk/src/models/event";
|
||||
import { Room } from "matrix-js-sdk/src/models/room";
|
||||
|
@ -65,7 +64,6 @@ interface IBridgeStateEvent {
|
|||
};
|
||||
}
|
||||
|
||||
@replaceableComponentTs("views.settings.BridgeTile")
|
||||
export default class BridgeTile extends React.PureComponent<IProps> {
|
||||
static propTypes = {
|
||||
ev: PropTypes.object.isRequired,
|
||||
|
|
|
@ -38,12 +38,3 @@ export function replaceableComponent(name: string, origComponent: React.Componen
|
|||
// return a falsey value like `null` when the skin doesn't have a component.
|
||||
return () => sdk.getComponent(name) || origComponent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Typescript-compatible version of `replaceableComponent`
|
||||
* @see replaceableComponent
|
||||
* @param {string} name The dot-path name of the component being replaced.
|
||||
*/
|
||||
export function replaceableComponentTs(name: string) {
|
||||
return (origComponent: typeof React.Component) => sdk.getComponent(name) || origComponent;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue