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

Commit 0f17f87

Browse files
authored
Fix style inconsistency on SecureBackupPanel (#11102)
1 parent fa31ed5 commit 0f17f87

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/views/settings/SecureBackupPanel.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,14 +240,20 @@ export default class SecureBackupPanel extends React.PureComponent<{}, IState> {
240240
let extraDetails: JSX.Element | undefined;
241241
const actions: JSX.Element[] = [];
242242
if (error) {
243-
statusDescription = <div className="error">{_t("Unable to load key backup status")}</div>;
243+
statusDescription = (
244+
<SettingsSubsectionText className="error">
245+
{_t("Unable to load key backup status")}
246+
</SettingsSubsectionText>
247+
);
244248
} else if (loading) {
245249
statusDescription = <Spinner />;
246250
} else if (backupInfo) {
247251
let restoreButtonCaption = _t("Restore from Backup");
248252

249253
if (MatrixClientPeg.safeGet().getKeyBackupEnabled()) {
250-
statusDescription = <p>{_t("This session is backing up your keys.")}</p>;
254+
statusDescription = (
255+
<SettingsSubsectionText>{_t("This session is backing up your keys.")}</SettingsSubsectionText>
256+
);
251257
} else {
252258
statusDescription = (
253259
<>

0 commit comments

Comments
 (0)