mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
fix missing export lyrics button
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user