mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-08-17 20:56:02 +00:00
paginationInput removed from selectableInputs
This commit is contained in:
parent
62c2c8438a
commit
b4a72b96a0
1 changed files with 1 additions and 15 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue