Conform to new react and typescript eslint rules
This commit is contained in:
@@ -90,7 +90,7 @@ export default class AutoDiscoveryUtils {
|
||||
href="https://github.com/vector-im/element-web/blob/master/docs/config.md"
|
||||
target="_blank"
|
||||
rel="noreferrer noopener"
|
||||
>{sub}</a>;
|
||||
>{ sub }</a>;
|
||||
},
|
||||
},
|
||||
);
|
||||
@@ -130,8 +130,8 @@ export default class AutoDiscoveryUtils {
|
||||
serverErrorIsFatal: isFatalError,
|
||||
serverDeadError: (
|
||||
<div>
|
||||
<strong>{title}</strong>
|
||||
<div>{body}</div>
|
||||
<strong>{ title }</strong>
|
||||
<div>{ body }</div>
|
||||
</div>
|
||||
),
|
||||
};
|
||||
|
||||
@@ -44,7 +44,7 @@ export function messageForResourceLimitError(
|
||||
|
||||
const linkSub = sub => {
|
||||
if (adminContact) {
|
||||
return <a href={adminContact} target="_blank" rel="noreferrer noopener">{sub}</a>;
|
||||
return <a href={adminContact} target="_blank" rel="noreferrer noopener">{ sub }</a>;
|
||||
} else {
|
||||
return sub;
|
||||
}
|
||||
@@ -76,12 +76,12 @@ export function messageForSyncError(err: MatrixError | Error): ReactNode {
|
||||
},
|
||||
);
|
||||
return <div>
|
||||
<div>{limitError}</div>
|
||||
<div>{adminContact}</div>
|
||||
<div>{ limitError }</div>
|
||||
<div>{ adminContact }</div>
|
||||
</div>;
|
||||
} else {
|
||||
return <div>
|
||||
{_t("Unable to connect to Homeserver. Retrying...")}
|
||||
{ _t("Unable to connect to Homeserver. Retrying...") }
|
||||
</div>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user