paginationInput removed from selectableInputs

This commit is contained in:
nklhrstv 2022-06-27 16:21:23 +03:00
parent 62c2c8438a
commit b4a72b96a0

View file

@ -69,21 +69,7 @@ const mapSelectableInputs = (discover) => {
window.location = href;
}
}));
const paginationInput = discover.selectable.prevPage || discover.selectable.nextPage ?
{
label: discover.page.toString(),
onSelect: (event) => {
if (event.value === 'prev' && discover.selectable.prevPage) {
window.location = discover.selectable.prevPage.deepLinks.discover;
}
if (event.value === 'next' && discover.selectable.nextPage) {
window.location = discover.selectable.nextPage.deepLinks.discover;
}
}
}
:
null;
return [[typeSelect, catalogSelect, ...extraSelects], paginationInput];
return [[typeSelect, catalogSelect, ...extraSelects], discover.selectable.nextPage];
};
const useSelectableInputs = (discover) => {