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

Fix style inconsistencies on SecureBackupPanel #11102

Merged
merged 1 commit into from
Jun 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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