rename const

Signed-off-by: Ky <virginie.ky@gmail.com>
This commit is contained in:
Ky 2020-05-05 01:07:26 +02:00
parent 18ac81057b
commit c02abe90fc
2 changed files with 6 additions and 6 deletions

View File

@ -46,7 +46,7 @@ const HomePageContent = ({
onSelectAll={onSelectAll}
/>
<HomePageList
areResultsEmpty={areResultsEmptyWithSearchOrFilters}
areResultsEmptyWithSettings={areResultsEmptyWithSearchOrFilters}
data={data}
dataCount={dataCount}
dataToDelete={dataToDelete}

View File

@ -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,