fix missing export lyrics button

This commit is contained in:
jeffvli
2026-01-01 20:08:27 -08:00
parent c7809c62ce
commit af8470e254
2 changed files with 4 additions and 1 deletions
@@ -13,6 +13,7 @@ import { Tooltip } from '/@/shared/components/tooltip/tooltip';
import { LyricsOverride } from '/@/shared/types/domain-types'; import { LyricsOverride } from '/@/shared/types/domain-types';
interface LyricsActionsProps { interface LyricsActionsProps {
hasLyrics: boolean;
index: number; index: number;
languages: { label: string; value: string }[]; languages: { label: string; value: string }[];
offsetMs: number; offsetMs: number;
@@ -27,6 +28,7 @@ interface LyricsActionsProps {
} }
export const LyricsActions = ({ export const LyricsActions = ({
hasLyrics,
index, index,
languages, languages,
offsetMs, offsetMs,
@@ -51,7 +53,7 @@ export const LyricsActions = ({
return ( return (
<> <>
<div style={{ position: 'relative', width: '100%' }}> <div style={{ position: 'relative', width: '100%' }}>
{languages.length > 0 && ( {hasLyrics && (
<Center pb="md"> <Center pb="md">
{languages.length > 1 && ( {languages.length > 1 && (
<Select <Select
+1
View File
@@ -519,6 +519,7 @@ export const Lyrics = ({ fadeOutNoLyricsMessage = true, settingsKey = 'default'
)} )}
<div className={styles.actionsContainer}> <div className={styles.actionsContainer}>
<LyricsActions <LyricsActions
hasLyrics={!!lyrics}
index={index} index={index}
languages={languages} languages={languages}
offsetMs={currentOffsetMs} offsetMs={currentOffsetMs}