mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-05 04:19:55 +00:00
use general section as initially selected
This commit is contained in:
parent
6110637d31
commit
28b1a56986
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ const Settings = () => {
|
|||
{ ref: playerSectionRef, id: PLAYER_SECTION },
|
||||
{ ref: streamingServerSectionRef, id: STREAMING_SECTION },
|
||||
]), []);
|
||||
const [selectedSectionId, setSelectedSectionId] = React.useState(sections[0].id);
|
||||
const [selectedSectionId, setSelectedSectionId] = React.useState(GENERAL_SECTION);
|
||||
const updateSelectedSectionId = React.useCallback(() => {
|
||||
if (sectionsContainerRef.current.scrollTop + sectionsContainerRef.current.clientHeight === sectionsContainerRef.current.scrollHeight) {
|
||||
setSelectedSectionId(sections[sections.length - 1].id);
|
||||
|
|
|
|||
Loading…
Reference in a new issue