reverse the lyrics offset behavior to standard convention

This commit is contained in:
jeffvli
2025-11-30 17:47:19 -08:00
parent 72ef6da243
commit 615280e01b
4 changed files with 24 additions and 30 deletions
+7 -8
View File
@@ -114,13 +114,13 @@ export const Lyrics = () => {
}
}, [override, overrideData, currentSong]);
const handleOnResetLyric = useCallback(() => {
setOverride(undefined);
queryClient.invalidateQueries({
exact: true,
queryKey: queryKeys.songs.lyrics(currentSong?._serverId, { songId: currentSong?.id }),
});
}, [currentSong?.id, currentSong?._serverId]);
// const handleOnResetLyric = useCallback(() => {
// setOverride(undefined);
// queryClient.invalidateQueries({
// exact: true,
// queryKey: queryKeys.songs.lyrics(currentSong?._serverId, { songId: currentSong?.id }),
// });
// }, [currentSong?.id, currentSong?._serverId]);
const handleOnRemoveLyric = useCallback(() => {
queryClient.setQueryData(
@@ -259,7 +259,6 @@ export const Lyrics = () => {
index={index}
languages={languages}
onRemoveLyric={handleOnRemoveLyric}
onResetLyric={handleOnResetLyric}
onSearchOverride={handleOnSearchOverride}
onTranslateLyric={
translationApiProvider && translationApiKey