mirror of
https://github.com/strapi/strapi.git
synced 2025-09-23 15:29:27 +00:00
rename const
Signed-off-by: Ky <virginie.ky@gmail.com>
This commit is contained in:
parent
18ac81057b
commit
c02abe90fc
@ -46,7 +46,7 @@ const HomePageContent = ({
|
||||
onSelectAll={onSelectAll}
|
||||
/>
|
||||
<HomePageList
|
||||
areResultsEmpty={areResultsEmptyWithSearchOrFilters}
|
||||
areResultsEmptyWithSettings={areResultsEmptyWithSearchOrFilters}
|
||||
data={data}
|
||||
dataCount={dataCount}
|
||||
dataToDelete={dataToDelete}
|
||||
|
@ -8,7 +8,7 @@ import ListEmpty from '../ListEmpty';
|
||||
import Padded from '../Padded';
|
||||
|
||||
const HomePageList = ({
|
||||
areResultsEmpty,
|
||||
areResultsEmptyWithSettings,
|
||||
data,
|
||||
dataCount,
|
||||
dataToDelete,
|
||||
@ -37,7 +37,7 @@ const HomePageList = ({
|
||||
}
|
||||
};
|
||||
|
||||
if (dataCount > 0 && !areResultsEmpty) {
|
||||
if (dataCount > 0 && !areResultsEmptyWithSettings) {
|
||||
return (
|
||||
<>
|
||||
<List
|
||||
@ -60,11 +60,11 @@ const HomePageList = ({
|
||||
);
|
||||
}
|
||||
|
||||
return <ListEmpty onClick={onClick} hasSearchApplied={areResultsEmpty} />;
|
||||
return <ListEmpty onClick={onClick} hasSearchApplied={areResultsEmptyWithSettings} />;
|
||||
};
|
||||
|
||||
HomePageList.defaultProps = {
|
||||
areResultsEmpty: false,
|
||||
areResultsEmptyWithSettings: false,
|
||||
data: [],
|
||||
dataCount: 0,
|
||||
dataToDelete: [],
|
||||
@ -75,7 +75,7 @@ HomePageList.defaultProps = {
|
||||
};
|
||||
|
||||
HomePageList.propTypes = {
|
||||
areResultsEmpty: PropTypes.bool,
|
||||
areResultsEmptyWithSettings: PropTypes.bool,
|
||||
data: PropTypes.array,
|
||||
dataCount: PropTypes.number,
|
||||
dataToDelete: PropTypes.array,
|
||||
|
Loading…
x
Reference in New Issue
Block a user