Revert back to using sdk.getComponent()
This commit is contained in:
parent
550fba49f7
commit
60e05d2e8c
1 changed files with 3 additions and 1 deletions
|
@ -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 &&
|
||||||
|
|
Loading…
Reference in a new issue