Render with ternary in bulk manage

Closes #10360
pull/10365/head
Bogdan 3 months ago
parent 58f544e9e0
commit 93298645e3

@ -160,9 +160,9 @@ function ManageCustomFormatsModalContent(
{error ? <div>{errorMessage}</div> : null}
{isPopulated && !error && !items.length && (
{isPopulated && !error && !items.length ? (
<Alert kind={kinds.INFO}>{translate('NoCustomFormatsFound')}</Alert>
)}
) : null}
{isPopulated && !!items.length && !isFetching && !isFetching ? (
<Table

@ -220,9 +220,9 @@ function ManageDownloadClientsModalContent(
{error ? <div>{errorMessage}</div> : null}
{isPopulated && !error && !items.length && (
{isPopulated && !error && !items.length ? (
<Alert kind={kinds.INFO}>{translate('NoDownloadClientsFound')}</Alert>
)}
) : null}
{isPopulated && !!items.length && !isFetching && !isFetching ? (
<Table

@ -210,9 +210,9 @@ function ManageImportListsModalContent(
{error ? <div>{errorMessage}</div> : null}
{isPopulated && !error && !items.length && (
{isPopulated && !error && !items.length ? (
<Alert kind={kinds.INFO}>{translate('NoImportListsFound')}</Alert>
)}
) : null}
{isPopulated && !!items.length && !isFetching && !isFetching ? (
<Table

@ -215,9 +215,9 @@ function ManageIndexersModalContent(props: ManageIndexersModalContentProps) {
{error ? <div>{errorMessage}</div> : null}
{isPopulated && !error && !items.length && (
{isPopulated && !error && !items.length ? (
<Alert kind={kinds.INFO}>{translate('NoIndexersFound')}</Alert>
)}
) : null}
{isPopulated && !!items.length && !isFetching && !isFetching ? (
<Table

Loading…
Cancel
Save