mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 10:23:33 +00:00
Various lyrics improvements
- Update wording on provider fetcher - Invalidate query on reset instead of resetQuery
This commit is contained in:
parent
59a851f8c8
commit
8686a7c592
4 changed files with 15 additions and 14 deletions
|
|
@ -111,7 +111,7 @@ export const Lyrics = () => {
|
|||
}, []);
|
||||
|
||||
const handleOnResetLyric = useCallback(() => {
|
||||
queryClient.resetQueries({
|
||||
queryClient.invalidateQueries({
|
||||
exact: true,
|
||||
queryKey: queryKeys.songs.lyrics(currentSong?.serverId, { songId: currentSong?.id }),
|
||||
});
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ export const UnsynchronizedLyrics = ({
|
|||
$gap={settings.gapUnsync}
|
||||
className="unsynchronized-lyrics"
|
||||
>
|
||||
{source && (
|
||||
{settings.showProvider && source && (
|
||||
<LyricLine
|
||||
alignment={settings.alignment}
|
||||
className="lyric-credit"
|
||||
|
|
@ -56,7 +56,7 @@ export const UnsynchronizedLyrics = ({
|
|||
text={`Provided by ${source}`}
|
||||
/>
|
||||
)}
|
||||
{remote && (
|
||||
{settings.showMatch && remote && (
|
||||
<LyricLine
|
||||
alignment={settings.alignment}
|
||||
className="lyric-credit"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue