Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 6105e04

Browse files
author
Germain Souquet
committed
Remove sdk.getComponent
1 parent f712186 commit 6105e04

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/views/rooms/Stickerpicker.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { Room } from 'matrix-js-sdk/src/models/room';
1919
import { _t, _td } from '../../../languageHandler';
2020
import AppTile from '../elements/AppTile';
2121
import { MatrixClientPeg } from '../../../MatrixClientPeg';
22-
import * as sdk from '../../../index';
2322
import dis from '../../../dispatcher/dispatcher';
2423
import AccessibleButton from '../elements/AccessibleButton';
2524
import WidgetUtils, { IWidgetEvent } from '../../../utils/WidgetUtils';
@@ -34,6 +33,7 @@ import { WidgetMessagingStore } from "../../../stores/widgets/WidgetMessagingSto
3433
import { replaceableComponent } from "../../../utils/replaceableComponent";
3534
import { ActionPayload } from '../../../dispatcher/payloads';
3635
import ScalarAuthClient from '../../../ScalarAuthClient';
36+
import GenericElementContextMenu from "../context_menus/GenericElementContextMenu";
3737

3838
// This should be below the dialog level (4000), but above the rest of the UI (1000-2000).
3939
// We sit in a context menu, so this should be given to the context menu.
@@ -250,7 +250,6 @@ export default class Stickerpicker extends React.PureComponent<IProps, IState> {
250250
// Use a separate ReactDOM tree to render the AppTile separately so that it persists and does
251251
// not unmount when we (a) close the sticker picker (b) switch rooms. It's properties are still
252252
// updated.
253-
const PersistedElement = sdk.getComponent("elements.PersistedElement");
254253

255254
// Load stickerpack content
256255
if (stickerpickerWidget && stickerpickerWidget.content && stickerpickerWidget.content.url) {
@@ -415,7 +414,6 @@ export default class Stickerpicker extends React.PureComponent<IProps, IState> {
415414
title={_t("Hide Stickers")}
416415
/>;
417416

418-
const GenericElementContextMenu = sdk.getComponent('context_menus.GenericElementContextMenu');
419417
stickerPicker = <ContextMenu
420418
chevronOffset={this.state.stickerpickerChevronOffset}
421419
chevronFace={ChevronFace.Bottom}

0 commit comments

Comments
 (0)