Cleanup react warnings from manage modals

This commit is contained in:
Qstick 2023-05-27 20:05:24 -05:00
parent 593652a84a
commit efab1b0793
6 changed files with 25 additions and 47 deletions

View File

@ -51,33 +51,23 @@ function ManageDownloadClientsModalRow(
onSelectedChange={onSelectedChangeWrapper} onSelectedChange={onSelectedChangeWrapper}
/> />
<TableRowCell className={styles.name} title={name}> <TableRowCell className={styles.name}>{name}</TableRowCell>
{name}
</TableRowCell>
<TableRowCell className={styles.implementation} title={implementation}> <TableRowCell className={styles.implementation}>
{implementation} {implementation}
</TableRowCell> </TableRowCell>
<TableRowCell className={styles.enable} title={enable}> <TableRowCell className={styles.enable}>
{enable ? 'Yes' : 'No'} {enable ? 'Yes' : 'No'}
</TableRowCell> </TableRowCell>
<TableRowCell className={styles.priority} title={priority}> <TableRowCell className={styles.priority}>{priority}</TableRowCell>
{priority}
</TableRowCell>
<TableRowCell <TableRowCell className={styles.removeCompletedDownloads}>
className={styles.removeCompletedDownloads}
title={removeCompletedDownloads}
>
{removeCompletedDownloads ? 'Yes' : 'No'} {removeCompletedDownloads ? 'Yes' : 'No'}
</TableRowCell> </TableRowCell>
<TableRowCell <TableRowCell className={styles.removeFailedDownloads}>
className={styles.removeFailedDownloads}
title={removeFailedDownloads}
>
{removeFailedDownloads ? 'Yes' : 'No'} {removeFailedDownloads ? 'Yes' : 'No'}
</TableRowCell> </TableRowCell>
</TableRow> </TableRow>

View File

@ -56,33 +56,25 @@ function ManageImportListsModalRow(props: ManageImportListsModalRowProps) {
onSelectedChange={onSelectedChangeWrapper} onSelectedChange={onSelectedChangeWrapper}
/> />
<TableRowCell className={styles.name} title={name}> <TableRowCell className={styles.name}>{name}</TableRowCell>
{name}
</TableRowCell>
<TableRowCell className={styles.implementation} title={implementation}> <TableRowCell className={styles.implementation}>
{implementation} {implementation}
</TableRowCell> </TableRowCell>
<TableRowCell <TableRowCell className={styles.qualityProfileId}>
className={styles.qualityProfileId}
title={qualityProfileId}
>
{qualityProfile?.name ?? 'None'} {qualityProfile?.name ?? 'None'}
</TableRowCell> </TableRowCell>
<TableRowCell className={styles.rootFolderPath} title={rootFolderPath}> <TableRowCell className={styles.rootFolderPath}>
{rootFolderPath} {rootFolderPath}
</TableRowCell> </TableRowCell>
<TableRowCell <TableRowCell className={styles.enableAutomaticAdd}>
className={styles.enableAutomaticAdd}
title={enableAutomaticAdd}
>
{enableAutomaticAdd ? 'Yes' : 'No'} {enableAutomaticAdd ? 'Yes' : 'No'}
</TableRowCell> </TableRowCell>
<TableRowCell className={styles.tags} title={tags}> <TableRowCell className={styles.tags}>
<TagListConnector tags={tags} /> <TagListConnector tags={tags} />
</TableRowCell> </TableRowCell>
</TableRow> </TableRow>

View File

@ -52,37 +52,27 @@ function ManageIndexersModalRow(props: ManageIndexersModalRowProps) {
onSelectedChange={onSelectedChangeWrapper} onSelectedChange={onSelectedChangeWrapper}
/> />
<TableRowCell className={styles.name} title={name}> <TableRowCell className={styles.name}>{name}</TableRowCell>
{name}
</TableRowCell>
<TableRowCell className={styles.implementation} title={implementation}> <TableRowCell className={styles.implementation}>
{implementation} {implementation}
</TableRowCell> </TableRowCell>
<TableRowCell className={styles.enableRss} title={enableRss}> <TableRowCell className={styles.enableRss}>
{enableRss ? 'Yes' : 'No'} {enableRss ? 'Yes' : 'No'}
</TableRowCell> </TableRowCell>
<TableRowCell <TableRowCell className={styles.enableAutomaticSearch}>
className={styles.enableAutomaticSearch}
title={enableAutomaticSearch}
>
{enableAutomaticSearch ? 'Yes' : 'No'} {enableAutomaticSearch ? 'Yes' : 'No'}
</TableRowCell> </TableRowCell>
<TableRowCell <TableRowCell className={styles.enableInteractiveSearch}>
className={styles.enableInteractiveSearch}
title={enableInteractiveSearch}
>
{enableInteractiveSearch ? 'Yes' : 'No'} {enableInteractiveSearch ? 'Yes' : 'No'}
</TableRowCell> </TableRowCell>
<TableRowCell className={styles.priority} title={priority}> <TableRowCell className={styles.priority}>{priority}</TableRowCell>
{priority}
</TableRowCell>
<TableRowCell className={styles.tags} title={tags}> <TableRowCell className={styles.tags}>
<TagListConnector tags={tags} /> <TagListConnector tags={tags} />
</TableRowCell> </TableRowCell>
</TableRow> </TableRow>

View File

@ -85,6 +85,8 @@ export default {
selectedSchema: {}, selectedSchema: {},
isSaving: false, isSaving: false,
saveError: null, saveError: null,
isDeleting: false,
deleteError: null,
isTesting: false, isTesting: false,
isTestingAll: false, isTestingAll: false,
items: [], items: [],

View File

@ -85,6 +85,8 @@ export default {
selectedSchema: {}, selectedSchema: {},
isSaving: false, isSaving: false,
saveError: null, saveError: null,
isDeleting: false,
deleteError: null,
isTesting: false, isTesting: false,
isTestingAll: false, isTestingAll: false,
items: [], items: [],

View File

@ -89,6 +89,8 @@ export default {
selectedSchema: {}, selectedSchema: {},
isSaving: false, isSaving: false,
saveError: null, saveError: null,
isDeleting: false,
deleteError: null,
isTesting: false, isTesting: false,
isTestingAll: false, isTestingAll: false,
items: [], items: [],