Add component key to actions array
This commit is contained in:
parent
685878a101
commit
7be27e70c9
2 changed files with 6 additions and 6 deletions
|
@ -200,7 +200,7 @@ export default class CrossSigningPanel extends React.PureComponent {
|
||||||
// TODO: determine how better to expose this to users in addition to prompts at login/toast
|
// TODO: determine how better to expose this to users in addition to prompts at login/toast
|
||||||
if (!keysExistEverywhere && homeserverSupportsCrossSigning) {
|
if (!keysExistEverywhere && homeserverSupportsCrossSigning) {
|
||||||
actions.push(
|
actions.push(
|
||||||
<AccessibleButton kind="primary" onClick={this._onBootstrapClick}>
|
<AccessibleButton key="setup" kind="primary" onClick={this._onBootstrapClick}>
|
||||||
{_t("Set up")}
|
{_t("Set up")}
|
||||||
</AccessibleButton>,
|
</AccessibleButton>,
|
||||||
);
|
);
|
||||||
|
@ -208,7 +208,7 @@ export default class CrossSigningPanel extends React.PureComponent {
|
||||||
|
|
||||||
if (keysExistAnywhere) {
|
if (keysExistAnywhere) {
|
||||||
actions.push(
|
actions.push(
|
||||||
<AccessibleButton kind="danger" onClick={this._resetCrossSigning}>
|
<AccessibleButton key="reset" kind="danger" onClick={this._resetCrossSigning}>
|
||||||
{_t("Reset")}
|
{_t("Reset")}
|
||||||
</AccessibleButton>,
|
</AccessibleButton>,
|
||||||
);
|
);
|
||||||
|
|
|
@ -367,14 +367,14 @@ export default class SecureBackupPanel extends React.PureComponent {
|
||||||
</>;
|
</>;
|
||||||
|
|
||||||
actions.push(
|
actions.push(
|
||||||
<AccessibleButton kind="primary" onClick={this._restoreBackup}>
|
<AccessibleButton key="restore" kind="primary" onClick={this._restoreBackup}>
|
||||||
{restoreButtonCaption}
|
{restoreButtonCaption}
|
||||||
</AccessibleButton>,
|
</AccessibleButton>,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!isSecureBackupRequired()) {
|
if (!isSecureBackupRequired()) {
|
||||||
actions.push(
|
actions.push(
|
||||||
<AccessibleButton kind="danger" onClick={this._deleteBackup}>
|
<AccessibleButton key="delete" kind="danger" onClick={this._deleteBackup}>
|
||||||
{_t("Delete Backup")}
|
{_t("Delete Backup")}
|
||||||
</AccessibleButton>,
|
</AccessibleButton>,
|
||||||
);
|
);
|
||||||
|
@ -388,7 +388,7 @@ export default class SecureBackupPanel extends React.PureComponent {
|
||||||
<p>{_t("Back up your keys before signing out to avoid losing them.")}</p>
|
<p>{_t("Back up your keys before signing out to avoid losing them.")}</p>
|
||||||
</>;
|
</>;
|
||||||
actions.push(
|
actions.push(
|
||||||
<AccessibleButton kind="primary" onClick={this._startNewBackup}>
|
<AccessibleButton key="setup" kind="primary" onClick={this._startNewBackup}>
|
||||||
{_t("Set up")}
|
{_t("Set up")}
|
||||||
</AccessibleButton>,
|
</AccessibleButton>,
|
||||||
);
|
);
|
||||||
|
@ -396,7 +396,7 @@ export default class SecureBackupPanel extends React.PureComponent {
|
||||||
|
|
||||||
if (secretStorageKeyInAccount) {
|
if (secretStorageKeyInAccount) {
|
||||||
actions.push(
|
actions.push(
|
||||||
<AccessibleButton kind="danger" onClick={this._resetSecretStorage}>
|
<AccessibleButton key="reset" kind="danger" onClick={this._resetSecretStorage}>
|
||||||
{_t("Reset")}
|
{_t("Reset")}
|
||||||
</AccessibleButton>,
|
</AccessibleButton>,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue