Remove sdk.getComponent()
where possible (#7091)
This commit is contained in:
parent
6d3ba0eb95
commit
f08c0b3592
15 changed files with 27 additions and 44 deletions
|
@ -17,9 +17,10 @@ limitations under the License.
|
|||
import React from 'react';
|
||||
import { _t } from "../../../languageHandler";
|
||||
import SdkConfig from "../../../SdkConfig";
|
||||
import * as sdk from "../../../index";
|
||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
||||
import { IDialogProps } from "./IDialogProps";
|
||||
import BaseDialog from "./BaseDialog";
|
||||
import DialogButtons from "../elements/DialogButtons";
|
||||
|
||||
interface IProps extends IDialogProps {}
|
||||
|
||||
|
@ -31,8 +32,6 @@ export default class IntegrationsImpossibleDialog extends React.Component<IProps
|
|||
|
||||
public render(): JSX.Element {
|
||||
const brand = SdkConfig.get().brand;
|
||||
const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog');
|
||||
const DialogButtons = sdk.getComponent('views.elements.DialogButtons');
|
||||
|
||||
return (
|
||||
<BaseDialog
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue