From bb18e44042456e12222560a59dad0bf09c980d50 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Tue, 27 Oct 2020 17:11:07 +0000 Subject: [PATCH] Fix React warning by moving handler to each button React is disturbed that the buttons don't have their own event handlers, so let's just move it there. --- .../views/dialogs/security/CreateSecretStorageDialog.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/async-components/views/dialogs/security/CreateSecretStorageDialog.js b/src/async-components/views/dialogs/security/CreateSecretStorageDialog.js index 6819742388..b1a14062f4 100644 --- a/src/async-components/views/dialogs/security/CreateSecretStorageDialog.js +++ b/src/async-components/views/dialogs/security/CreateSecretStorageDialog.js @@ -470,6 +470,7 @@ export default class CreateSecretStorageDialog extends React.PureComponent { value={CREATE_STORAGE_OPTION_KEY} name="keyPassphrase" checked={this.state.passPhraseKeySelected === CREATE_STORAGE_OPTION_KEY} + onChange={this._onKeyPassphraseChange} outlined >
@@ -488,6 +489,7 @@ export default class CreateSecretStorageDialog extends React.PureComponent { value={CREATE_STORAGE_OPTION_PASSPHRASE} name="keyPassphrase" checked={this.state.passPhraseKeySelected === CREATE_STORAGE_OPTION_PASSPHRASE} + onChange={this._onKeyPassphraseChange} outlined >
@@ -509,7 +511,7 @@ export default class CreateSecretStorageDialog extends React.PureComponent { "Safeguard against losing access to encrypted messages & data by " + "backing up encryption keys on your server.", )}

-
+
{optionKey} {optionPassphrase}