mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-01-11 22:40:31 +00:00
Merge pull request #1076 from Stremio/refactor/settings-remove-shortcuts-mobile
Settings: Remove shortcuts section on mobile
This commit is contained in:
commit
aa571a7f8f
1 changed files with 5 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ import React, { useCallback, useLayoutEffect, useMemo, useRef, useState } from '
|
|||
import classnames from 'classnames';
|
||||
import throttle from 'lodash.throttle';
|
||||
import { useRouteFocused } from 'stremio-router';
|
||||
import { useProfile, useStreamingServer, withCoreSuspender } from 'stremio/common';
|
||||
import { usePlatform, useProfile, useStreamingServer, withCoreSuspender } from 'stremio/common';
|
||||
import { MainNavBars } from 'stremio/components';
|
||||
import { SECTIONS } from './constants';
|
||||
import Menu from './Menu';
|
||||
|
|
@ -18,6 +18,7 @@ import styles from './Settings.less';
|
|||
const Settings = () => {
|
||||
const { routeFocused } = useRouteFocused();
|
||||
const profile = useProfile();
|
||||
const platform = usePlatform();
|
||||
const streamingServer = useStreamingServer();
|
||||
|
||||
const sectionsContainerRef = useRef<HTMLDivElement>(null);
|
||||
|
|
@ -94,7 +95,9 @@ const Settings = () => {
|
|||
profile={profile}
|
||||
streamingServer={streamingServer}
|
||||
/>
|
||||
<Shortcuts ref={shortcutsSectionRef} />
|
||||
{
|
||||
!platform.isMobile && <Shortcuts ref={shortcutsSectionRef} />
|
||||
}
|
||||
<Info streamingServer={streamingServer} />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue