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

View File

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