Burn sdk.getComponent

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-07-13 08:45:36 +02:00
parent 5f81cfe9d9
commit ae5e10ff0c
No known key found for this signature in database
GPG key ID: 9760693FDD98A790

View file

@ -16,12 +16,12 @@ limitations under the License.
import React from 'react'; import React from 'react';
import dis from '../../../dispatcher/dispatcher'; import dis from '../../../dispatcher/dispatcher';
import * as sdk from '../../../index';
import { _t } from '../../../languageHandler'; import { _t } from '../../../languageHandler';
import RoomViewStore from '../../../stores/RoomViewStore'; import RoomViewStore from '../../../stores/RoomViewStore';
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { RoomPermalinkCreator } from "../../../utils/permalinks/Permalinks"; import { RoomPermalinkCreator } from "../../../utils/permalinks/Permalinks";
import { replaceableComponent } from "../../../utils/replaceableComponent"; import { replaceableComponent } from "../../../utils/replaceableComponent";
import ReplyTile from './ReplyTile';
function cancelQuoting() { function cancelQuoting() {
dis.dispatch({ dis.dispatch({
@ -69,8 +69,6 @@ export default class ReplyPreview extends React.Component {
render() { render() {
if (!this.state.event) return null; if (!this.state.event) return null;
const ReplyTile = sdk.getComponent('rooms.ReplyTile');
return <div className="mx_ReplyPreview"> return <div className="mx_ReplyPreview">
<div className="mx_ReplyPreview_section"> <div className="mx_ReplyPreview_section">
<div className="mx_ReplyPreview_header mx_ReplyPreview_title"> <div className="mx_ReplyPreview_header mx_ReplyPreview_title">