Skip to content

Commit

Permalink
fix some eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaiahWren committed Aug 22, 2023
1 parent f646229 commit a0af763
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions frontend/hub/collections/CollectionDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,7 @@ function CollectionDocumentationTabContent(props: {
<div>{option.name}</div>
<small style={{ opacity: 0.7 }}>{option.type}</small>
</Td>
<Td>
{option.choices?.map((choice) => (
<p key={choice}>{choice}</p>
))}
</Td>
<Td>{option.choices?.map((choice) => <p key={choice}>{choice}</p>)}</Td>
<Td>{option.description}</Td>
</Tr>
))}
Expand All @@ -329,9 +325,7 @@ function CollectionDocumentationTabContent(props: {
<PageSection variant="light">
<Stack hasGutter>
<Title headingLevel="h2">{t('Notes')}</Title>
{content?.doc_strings?.doc.notes?.map((note, index) => (
<p key={index}>{note}</p>
))}
{content?.doc_strings?.doc.notes?.map((note, index) => <p key={index}>{note}</p>)}
</Stack>
</PageSection>
)}
Expand Down Expand Up @@ -434,9 +428,9 @@ function CollectionImportLogTab(props: { collection?: CollectionVersionSearch })
variant="danger"
title={
<Stack>
{collectionImport?.error?.description.split('\n').map((line, index) => (
<StackItem key={index}>{line}</StackItem>
))}
{collectionImport?.error?.description
.split('\n')
.map((line, index) => <StackItem key={index}>{line}</StackItem>)}
</Stack>
}
isInline
Expand Down

0 comments on commit a0af763

Please sign in to comment.