mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
disable sidebar lyrics fetcher if panel is closed
This commit is contained in:
@@ -53,6 +53,9 @@ const BottomPanel = () => {
|
|||||||
const { data: lyricsData } = useQuery(
|
const { data: lyricsData } = useQuery(
|
||||||
lyricsQueries.songLyrics(
|
lyricsQueries.songLyrics(
|
||||||
{
|
{
|
||||||
|
options: {
|
||||||
|
enabled: showLyricsInSidebar && !!currentSong?.id,
|
||||||
|
},
|
||||||
query: { songId: currentSong?.id || '' },
|
query: { songId: currentSong?.id || '' },
|
||||||
serverId: currentSong?._serverId || '',
|
serverId: currentSong?._serverId || '',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -550,9 +550,7 @@ export const MobileFullscreenPlayer = () => {
|
|||||||
variant={isPageHovered ? 'default' : 'subtle'}
|
variant={isPageHovered ? 'default' : 'subtle'}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.lyricsContent}>
|
<div className={styles.lyricsContent}>{isLyricsState && <Lyrics />}</div>
|
||||||
<Lyrics />
|
|
||||||
</div>
|
|
||||||
</motion.div>
|
</motion.div>
|
||||||
</MobilePlayerContainer>
|
</MobilePlayerContainer>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user