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

Commit

Permalink
Fix style inconsistency on SecureBackupPanel (#11102)
Browse files Browse the repository at this point in the history
  • Loading branch information
luixxiul authored Jun 19, 2023
1 parent fa31ed5 commit 0f17f87
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/views/settings/SecureBackupPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,20 @@ export default class SecureBackupPanel extends React.PureComponent<{}, IState> {
let extraDetails: JSX.Element | undefined;
const actions: JSX.Element[] = [];
if (error) {
statusDescription = <div className="error">{_t("Unable to load key backup status")}</div>;
statusDescription = (
<SettingsSubsectionText className="error">
{_t("Unable to load key backup status")}
</SettingsSubsectionText>
);
} else if (loading) {
statusDescription = <Spinner />;
} else if (backupInfo) {
let restoreButtonCaption = _t("Restore from Backup");

if (MatrixClientPeg.safeGet().getKeyBackupEnabled()) {
statusDescription = <p>{_t("This session is backing up your keys.")}</p>;
statusDescription = (
<SettingsSubsectionText>{_t("This session is backing up your keys.")}</SettingsSubsectionText>
);
} else {
statusDescription = (
<>
Expand Down

0 comments on commit 0f17f87

Please sign in to comment.