mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 04:50:12 +02:00
Update lyric fetcher return types
This commit is contained in:
@@ -1032,7 +1032,8 @@ export type LyricsResponse = SynchronizedLyricsArray | string;
|
||||
export type InternetProviderLyricResponse = {
|
||||
artist: string;
|
||||
lyrics: string;
|
||||
title: string;
|
||||
name: string;
|
||||
source: string;
|
||||
};
|
||||
|
||||
export type LyricOverride = Omit<InternetProviderLyricResponse, 'lyrics'>;
|
||||
|
||||
@@ -279,7 +279,7 @@ export const SynchronizedLyrics = ({
|
||||
<>
|
||||
<LyricLine
|
||||
className="lyric-credit"
|
||||
text={`(Matched as ${override.title} by ${override.artist})`}
|
||||
text={`(Matched as ${override.name} by ${override.artist})`}
|
||||
/>
|
||||
<LyricSkip onClick={removeLyric} />
|
||||
</>
|
||||
|
||||
@@ -37,7 +37,7 @@ export const UnsynchronizedLyrics = ({
|
||||
<>
|
||||
<LyricLine
|
||||
className="lyric-credit"
|
||||
text={`(Matched as ${override.title} by ${override.artist})`}
|
||||
text={`(Matched as ${override.name} by ${override.artist})`}
|
||||
/>
|
||||
<LyricSkip onClick={onRemoveLyric} />
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user