diff --git a/packages/strapi-helper-plugin/lib/src/components/LeftMenuList/index.js b/packages/strapi-helper-plugin/lib/src/components/LeftMenuList/index.js
index 6dd93c0a09..74253e06d5 100644
--- a/packages/strapi-helper-plugin/lib/src/components/LeftMenuList/index.js
+++ b/packages/strapi-helper-plugin/lib/src/components/LeftMenuList/index.js
@@ -9,7 +9,7 @@ import LeftMenuHeader from '../LeftMenuHeader';
import List from './List';
import Wrapper from './Wrapper';
-function LeftMenuList({ customLink, links, title, searchable, numberOfVisibleItems }) {
+function LeftMenuList({ customLink, links, title, searchable }) {
const [search, setSearch] = useState('');
const { formatMessage } = useGlobalContext();
@@ -100,9 +100,7 @@ function LeftMenuList({ customLink, links, title, searchable, numberOfVisibleIte
-
- {getList().map((link, i) => renderCompo(link, i))}
-
+ {getList().map((link, i) => renderCompo(link, i))}
{Component && isValidElement() && }
@@ -114,7 +112,6 @@ LeftMenuList.defaultProps = {
links: [],
title: null,
searchable: false,
- numberOfVisibleItems: null,
};
LeftMenuList.propTypes = {
@@ -130,7 +127,6 @@ LeftMenuList.propTypes = {
id: PropTypes.string,
}),
searchable: PropTypes.bool,
- numberOfVisibleItems: PropTypes.number,
};
export default LeftMenuList;
diff --git a/packages/strapi-plugin-content-type-builder/admin/src/containers/LeftMenu/index.js b/packages/strapi-plugin-content-type-builder/admin/src/containers/LeftMenu/index.js
index c1d538ddf7..8fc65a24c6 100644
--- a/packages/strapi-plugin-content-type-builder/admin/src/containers/LeftMenu/index.js
+++ b/packages/strapi-plugin-content-type-builder/admin/src/containers/LeftMenu/index.js
@@ -76,12 +76,8 @@ function LeftMenu({ wait }) {
const canOpenModalCreateCTorComponent = () => {
return (
- !Object.keys(contentTypes).some(
- ct => contentTypes[ct].isTemporary === true
- ) &&
- !Object.keys(components).some(
- component => components[component].isTemporary === true
- )
+ !Object.keys(contentTypes).some(ct => contentTypes[ct].isTemporary === true) &&
+ !Object.keys(components).some(component => components[component].isTemporary === true)
);
};
@@ -128,9 +124,7 @@ function LeftMenu({ wait }) {
},
}
: null,
- links: sortedContentTypesList.filter(
- contentType => contentType.kind === 'collectionType'
- ),
+ links: sortedContentTypesList.filter(contentType => contentType.kind === 'collectionType'),
},
{
name: 'singleTypes',
@@ -149,9 +143,7 @@ function LeftMenu({ wait }) {
},
}
: null,
- links: sortedContentTypesList.filter(
- singleType => singleType.kind === 'singleType'
- ),
+ links: sortedContentTypesList.filter(singleType => singleType.kind === 'singleType'),
},
{
name: 'components',
@@ -177,9 +169,7 @@ function LeftMenu({ wait }) {
return (
{data.map(list => {
- return (
-
- );
+ return ;
})}
);