diff --git a/src/async-components/views/dialogs/security/CreateSecretStorageDialog.tsx b/src/async-components/views/dialogs/security/CreateSecretStorageDialog.tsx index 441f217be9b..2278fb38060 100644 --- a/src/async-components/views/dialogs/security/CreateSecretStorageDialog.tsx +++ b/src/async-components/views/dialogs/security/CreateSecretStorageDialog.tsx @@ -404,13 +404,10 @@ export default class CreateSecretStorageDialog extends React.PureComponent => { - const keyCallback = (k: Uint8Array): void => {}; - const { finished } = Modal.createDialog( RestoreKeyBackupDialog, { showSummary: false, - keyCallback, }, undefined, /* priority = */ false, diff --git a/src/components/views/dialogs/security/RestoreKeyBackupDialog.tsx b/src/components/views/dialogs/security/RestoreKeyBackupDialog.tsx index 3b54f4f1973..be76491c2fc 100644 --- a/src/components/views/dialogs/security/RestoreKeyBackupDialog.tsx +++ b/src/components/views/dialogs/security/RestoreKeyBackupDialog.tsx @@ -37,9 +37,6 @@ interface IProps { // if false, will close the dialog as soon as the restore completes successfully // default: true showSummary?: boolean; - // If specified, gather the key from the user but then call the function with the backup - // key rather than actually (necessarily) restoring the backup. - keyCallback?: (key: Uint8Array) => void; onFinished(done?: boolean): void; } @@ -156,13 +153,6 @@ export default class RestoreKeyBackupDialog extends React.PureComponent { expect(modalSpy).toHaveBeenCalledWith( RestoreKeyBackupDialog, { - keyCallback: expect.any(Function), showSummary: false, }, undefined, @@ -200,7 +199,6 @@ describe("CreateSecretStorageDialog", () => { expect(modalSpy).toHaveBeenCalledWith( RestoreKeyBackupDialog, { - keyCallback: expect.any(Function), showSummary: false, }, undefined,