Conform to new react and typescript eslint rules
This commit is contained in:
parent
b6feaf74bc
commit
ce78cdf4ad
266 changed files with 1992 additions and 2000 deletions
|
@ -66,7 +66,7 @@ const EncryptionInfo: React.FC<IProps> = ({
|
|||
} else {
|
||||
content = (
|
||||
<AccessibleButton kind="primary" className="mx_UserInfo_wideButton" onClick={onStartVerification}>
|
||||
{_t("Start Verification")}
|
||||
{ _t("Start Verification") }
|
||||
</AccessibleButton>
|
||||
);
|
||||
}
|
||||
|
@ -75,17 +75,17 @@ const EncryptionInfo: React.FC<IProps> = ({
|
|||
if (isRoomEncrypted) {
|
||||
description = (
|
||||
<div>
|
||||
<p>{_t("Messages in this room are end-to-end encrypted.")}</p>
|
||||
<p>{_t("Your messages are secured and only you and the recipient have " +
|
||||
"the unique keys to unlock them.")}</p>
|
||||
<p>{ _t("Messages in this room are end-to-end encrypted.") }</p>
|
||||
<p>{ _t("Your messages are secured and only you and the recipient have " +
|
||||
"the unique keys to unlock them.") }</p>
|
||||
</div>
|
||||
);
|
||||
} else {
|
||||
description = (
|
||||
<div>
|
||||
<p>{_t("Messages in this room are not end-to-end encrypted.")}</p>
|
||||
<p>{_t("In encrypted rooms, your messages are secured and only you and the recipient have " +
|
||||
"the unique keys to unlock them.")}</p>
|
||||
<p>{ _t("Messages in this room are not end-to-end encrypted.") }</p>
|
||||
<p>{ _t("In encrypted rooms, your messages are secured and only you and the recipient have " +
|
||||
"the unique keys to unlock them.") }</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@ -96,14 +96,14 @@ const EncryptionInfo: React.FC<IProps> = ({
|
|||
|
||||
return <React.Fragment>
|
||||
<div className="mx_UserInfo_container">
|
||||
<h3>{_t("Encryption")}</h3>
|
||||
<h3>{ _t("Encryption") }</h3>
|
||||
{ description }
|
||||
</div>
|
||||
<div className="mx_UserInfo_container">
|
||||
<h3>{_t("Verify User")}</h3>
|
||||
<h3>{ _t("Verify User") }</h3>
|
||||
<div>
|
||||
<p>{_t("For extra security, verify this user by checking a one-time code on both of your devices.")}</p>
|
||||
<p>{_t("To be secure, do this in person or use a trusted way to communicate.")}</p>
|
||||
<p>{ _t("For extra security, verify this user by checking a one-time code on both of your devices.") }</p>
|
||||
<p>{ _t("To be secure, do this in person or use a trusted way to communicate.") }</p>
|
||||
{ content }
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue