diff --git a/packages/strapi-plugin-upload/admin/src/components/ListModal/index.js b/packages/strapi-plugin-upload/admin/src/components/ListModal/index.js index abccc30568..3694101aa0 100644 --- a/packages/strapi-plugin-upload/admin/src/components/ListModal/index.js +++ b/packages/strapi-plugin-upload/admin/src/components/ListModal/index.js @@ -1,5 +1,4 @@ import React from 'react'; -import PropTypes from 'prop-types'; import { Button } from '@buffetjs/core'; import { CheckPermissions } from 'strapi-helper-plugin'; import useModalContext from '../../hooks/useModalContext'; @@ -12,7 +11,7 @@ import SelectedAssets from '../SelectedAssets'; import IntlText from '../IntlText'; import BaselineAlignmentWrapper from './BaselineAlignmentWrapper'; -const ListModal = ({ noNavigation }) => { +const ListModal = () => { const { currentTab, goTo, handleModalTabChange, selectedFiles } = useModalContext(); const handleClick = to => { @@ -48,10 +47,12 @@ const ListModal = ({ noNavigation }) => { }, ]; - const renderRightContent = noNavigation ? null : renderUploadModalButton; - return ( - + {to => ( {to === 'browse' && } @@ -62,12 +63,4 @@ const ListModal = ({ noNavigation }) => { ); }; -ListModal.defaultProps = { - noNavigation: false, -}; - -ListModal.propTypes = { - noNavigation: PropTypes.bool, -}; - export default ListModal;