fix linting errors

This commit is contained in:
Simone Taeggi 2022-08-19 15:56:41 +02:00
parent 6b05d3cbba
commit e8fc84affd
2 changed files with 7 additions and 7 deletions

View File

@ -5,11 +5,11 @@ import CollapsableContentType from '../CollapsableContentType';
const ContentTypesSection = ({ section, name, ...props }) => {
const [indexExpandedCollpsedContent, setIndexExpandedCollpsedContent] = useState(null);
const handleExpandedCollpsedContentIndex = index => setIndexExpandedCollpsedContent(index);
return (
<Box padding={4} background="neutral0">
{section &&
const handleExpandedCollpsedContentIndex = (index) => setIndexExpandedCollpsedContent(index);
return (
<Box padding={4} background="neutral0">
{section &&
Object.keys(section).map((contentType, index) => (
<CollapsableContentType
key={contentType}
@ -22,7 +22,7 @@ return (
{...props}
/>
))}
</Box>
</Box>
);
};

View File

@ -22,7 +22,7 @@ const Permissions = ({ ...props }) => {
})}
>
<Tabs>
{TAB_LABELS.map(tabLabel => (
{TAB_LABELS.map((tabLabel) => (
<Tab key={tabLabel.id}>
{formatMessage({ id: tabLabel.labelId, defaultMessage: tabLabel.defaultMessage })}
</Tab>