mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-10 15:30:40 +00:00
fix: stuck on board issue
This commit is contained in:
parent
c47a06c667
commit
f70af4efda
1 changed files with 3 additions and 2 deletions
|
|
@ -26,8 +26,9 @@ const MainNavBars = memo(({ className, route, query, children }: Props) => {
|
|||
const navRef = React.useRef(null);
|
||||
const contentRef = React.useRef(null);
|
||||
|
||||
useContentGamepadNavigation(contentRef, route ?? 'board');
|
||||
useVerticalNavGamepadNavigation(navRef, route ?? 'board');
|
||||
const navRoute = route === 'continue_watching' ? 'library' : (route ?? '');
|
||||
useContentGamepadNavigation(contentRef, navRoute);
|
||||
useVerticalNavGamepadNavigation(navRef, navRoute);
|
||||
|
||||
return (
|
||||
<div className={classnames(className, styles['main-nav-bars-container'])}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue