mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 12:30:12 +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(
|
||||
lyricsQueries.songLyrics(
|
||||
{
|
||||
options: {
|
||||
enabled: showLyricsInSidebar && !!currentSong?.id,
|
||||
},
|
||||
query: { songId: currentSong?.id || '' },
|
||||
serverId: currentSong?._serverId || '',
|
||||
},
|
||||
|
||||
@@ -550,9 +550,7 @@ export const MobileFullscreenPlayer = () => {
|
||||
variant={isPageHovered ? 'default' : 'subtle'}
|
||||
/>
|
||||
</div>
|
||||
<div className={styles.lyricsContent}>
|
||||
<Lyrics />
|
||||
</div>
|
||||
<div className={styles.lyricsContent}>{isLyricsState && <Lyrics />}</div>
|
||||
</motion.div>
|
||||
</MobilePlayerContainer>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user