sdk.getComponent shall die

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-07-20 12:42:21 +02:00
parent 73187156d4
commit 333608c4c4
No known key found for this signature in database
GPG key ID: 55C211A1226CB17D
5 changed files with 10 additions and 20 deletions

View file

@ -17,9 +17,9 @@ limitations under the License.
import React from 'react';
import AccessibleButton from './AccessibleButton';
import dis from '../../../dispatcher/dispatcher';
import * as sdk from '../../../index';
import Analytics from '../../../Analytics';
import { replaceableComponent } from "../../../utils/replaceableComponent";
import Tooltip from './Tooltip';
interface IProps {
size?: string;
@ -71,7 +71,6 @@ export default class ActionButton extends React.Component<IProps, IState> {
render() {
let tooltip;
if (this.state.showTooltip) {
const Tooltip = sdk.getComponent("elements.Tooltip");
tooltip = <Tooltip className="mx_RoleButton_tooltip" label={this.props.label} />;
}