Update lyric fetcher return types

This commit is contained in:
jeffvli 2023-06-05 02:42:25 -07:00 committed by Jeff
parent 007a099951
commit d38c846e80
5 changed files with 14 additions and 9 deletions

View file

@ -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'>;

View file

@ -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} />
</>

View file

@ -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} />
</>