only show translation when api key and provider are picked, and fix eslint vscode

This commit is contained in:
Kendall Garner
2025-09-05 19:55:58 -07:00
parent c81bd93d04
commit 2cf0027419
4 changed files with 19 additions and 9 deletions
@@ -24,7 +24,7 @@ interface LyricsActionsProps {
onRemoveLyric: () => void;
onResetLyric: () => void;
onSearchOverride: (params: LyricsOverride) => void;
onTranslateLyric: () => void;
onTranslateLyric?: () => void;
setIndex: (idx: number) => void;
}
@@ -135,7 +135,7 @@ export const LyricsActions = ({
</div>
<div style={{ position: 'absolute', right: 0, top: -50 }}>
{isDesktop && sources.length ? (
{isDesktop && sources.length && onTranslateLyric ? (
<Button
disabled={isActionsDisabled}
onClick={onTranslateLyric}