You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Revert back to using sdk.getComponent()
This commit is contained in:
@@ -25,7 +25,6 @@ import Field from '../../elements/Field';
|
|||||||
import AccessibleButton from '../../elements/AccessibleButton';
|
import AccessibleButton from '../../elements/AccessibleButton';
|
||||||
import {_t} from '../../../../languageHandler';
|
import {_t} from '../../../../languageHandler';
|
||||||
import {IDialogProps} from "../IDialogProps";
|
import {IDialogProps} from "../IDialogProps";
|
||||||
import BaseDialog from "../BaseDialog";
|
|
||||||
|
|
||||||
// Maximum acceptable size of a key file. It's 59 characters including the spaces we encode,
|
// Maximum acceptable size of a key file. It's 59 characters including the spaces we encode,
|
||||||
// so this should be plenty and allow for people putting extra whitespace in the file because
|
// so this should be plenty and allow for people putting extra whitespace in the file because
|
||||||
@@ -217,6 +216,9 @@ export default class AccessSecretStorageDialog extends React.PureComponent<IProp
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
// Caution: Making this an import will break tests.
|
||||||
|
const BaseDialog = sdk.getComponent("views.dialogs.BaseDialog");
|
||||||
|
|
||||||
const hasPassphrase = (
|
const hasPassphrase = (
|
||||||
this.props.keyInfo &&
|
this.props.keyInfo &&
|
||||||
this.props.keyInfo.passphrase &&
|
this.props.keyInfo.passphrase &&
|
||||||
|
|||||||
Reference in New Issue
Block a user