Revert eslint upgrade, fix linting

This commit is contained in:
Jamie Curnow
2024-05-08 11:28:16 +10:00
parent fb880616c7
commit ae9504584c
6 changed files with 233 additions and 170 deletions

View File

@@ -91,7 +91,7 @@ function TableLayout({
? intl.formatMessage(
{ id: "tables.no-items-with-filters" },
{ count: state.filters.length },
)
)
: intl.formatMessage({ id: "tables.no-items" })}
</Center>
</Td>
@@ -153,7 +153,7 @@ function TableLayout({
))}
</Tr>
);
})
})
: renderEmpty()}
</Tbody>
</Table>
@@ -171,7 +171,7 @@ function TableLayout({
),
total: pagination.total,
},
)
)
: null}
</Text>
{state?.filters?.length ? (

View File

@@ -62,7 +62,7 @@ function DNSProviderField() {
{!isLoading && !data?.total
? intl.formatMessage({
id: "dns-providers.empty",
})
})
: form.errors[fieldName]}
</FormErrorMessage>
</FormControl>

View File

@@ -111,7 +111,7 @@ function DomainNamesField({
{helperTexts.length
? helperTexts.map((i) => {
return <FormHelperText key={i}>{i}</FormHelperText>;
})
})
: null}
<FormErrorMessage>{form.errors.domainNames}</FormErrorMessage>
</FormControl>

View File

@@ -288,7 +288,7 @@ function DNSProviderCreateModal({
)}
</Field>
);
})
})
: null}
</>
) : null}