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

Commit 60e05d2

Browse files
committed
Revert back to using sdk.getComponent()
1 parent 550fba4 commit 60e05d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/views/dialogs/security/AccessSecretStorageDialog.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import Field from '../../elements/Field';
2525
import AccessibleButton from '../../elements/AccessibleButton';
2626
import {_t} from '../../../../languageHandler';
2727
import {IDialogProps} from "../IDialogProps";
28-
import BaseDialog from "../BaseDialog";
2928

3029
// Maximum acceptable size of a key file. It's 59 characters including the spaces we encode,
3130
// 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
217216
}
218217

219218
render() {
219+
// Caution: Making this an import will break tests.
220+
const BaseDialog = sdk.getComponent("views.dialogs.BaseDialog");
221+
220222
const hasPassphrase = (
221223
this.props.keyInfo &&
222224
this.props.keyInfo.passphrase &&

0 commit comments

Comments
 (0)