Update React Lint rules for TSX

(cherry picked from commit 1299a97579bec52ee3d16ab8d05c9e22edd80330)
This commit is contained in:
Mark McDowall
2024-07-30 17:44:39 -07:00
committed by Bogdan
parent ef19673a76
commit 5cbbd060a4
20 changed files with 133 additions and 81 deletions
+11 -10
View File
@@ -45,11 +45,12 @@ function About() {
title={translate('PackageVersion')}
data={
packageAuthor ? (
<span>
{' '}
{packageVersion} {' by '}{' '}
<InlineMarkdown data={packageAuthor} />{' '}
</span>
<InlineMarkdown
data={translate('PackageVersionInfo', {
packageVersion,
packageAuthor,
})}
/>
) : (
packageVersion
)
@@ -57,16 +58,16 @@ function About() {
/>
)}
{isNetCore && (
{isNetCore ? (
<DescriptionListItem
title={translate('NetCore')}
data={`Yes (${runtimeVersion})`}
/>
)}
) : null}
{isDocker && (
<DescriptionListItem title={translate('Docker')} data={'Yes'} />
)}
{isDocker ? (
<DescriptionListItem title={translate('Docker')} data="Yes" />
) : null}
<DescriptionListItem
title={translate('Database')}