From f498416967b8d22d90bc0aa4335b3b51fb0f2214 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sun, 12 Oct 2025 14:30:38 -0400 Subject: [PATCH] Lint --- .../tidal/lyrics/components/modal.tsx | 36 ++----------------- .../musicControls/tidal/lyrics/types.ts | 3 ++ 2 files changed, 5 insertions(+), 34 deletions(-) diff --git a/src/equicordplugins/musicControls/tidal/lyrics/components/modal.tsx b/src/equicordplugins/musicControls/tidal/lyrics/components/modal.tsx index af8c20abc..a3589955a 100644 --- a/src/equicordplugins/musicControls/tidal/lyrics/components/modal.tsx +++ b/src/equicordplugins/musicControls/tidal/lyrics/components/modal.tsx @@ -42,7 +42,6 @@ export function LyricsModal({ rootProps }: { rootProps: ModalProps; }) { const { track, lyrics, currLrcIndex } = useLyrics({ scroll: false }); const currentLyrics = lyrics || null; const position = track ? TidalStore.mPosition : 0; - const { TidalSyncMode: SyncMode } = settings.use(["TidalSyncMode"]); return ( @@ -62,38 +61,7 @@ export function LyricsModal({ rootProps }: { rootProps: ModalProps; }) { > {formatTime(line.time)} - {SyncMode === "character" && line.characters && line.characters.length > 0 && line.words && line.words.length > 0 ? ( - line.words.map((word, wIdx) => ( - - {word.characters.map((char, j) => { - const charActive = position / 1000 >= char.time && position / 1000 < char.endTime; - return ( - - {char.char} - - ); - })} - {wIdx < line.words.length - 1 && } - - )) - ) : SyncMode === "character" && line.characters && line.characters.length > 0 ? ( - line.characters.map((char, j) => { - const charActive = position / 1000 >= char.time && position / 1000 < char.endTime; - return ( - - {char.char} - - ); - }) - ) : SyncMode === "word" && line.words && line.words.length > 0 ? ( + {( line.words.map((word, j) => { const wordActive = position / 1000 >= word.time && position / 1000 < word.endTime; return ( @@ -107,7 +75,7 @@ export function LyricsModal({ rootProps }: { rootProps: ModalProps; }) { ); }) ) : ( - line.text || NoteSvg(cl("modal-note")) + line.text || NoteSvg(cl("modal-note")) )} )) diff --git a/src/equicordplugins/musicControls/tidal/lyrics/types.ts b/src/equicordplugins/musicControls/tidal/lyrics/types.ts index a4a3cecf4..691241d8b 100644 --- a/src/equicordplugins/musicControls/tidal/lyrics/types.ts +++ b/src/equicordplugins/musicControls/tidal/lyrics/types.ts @@ -7,6 +7,9 @@ export interface EnhancedLyric { time: number; text: string; + words?: Word[]; + confidence?: null; + characters?: Character[]; } interface Character {