feature/spotify-export #8

Merged
ayoub merged 3 commits from feature/spotify-export into dev 2026-06-10 15:49:13 +00:00
Showing only changes of commit b3b6b056eb - Show all commits

View file

@ -11,6 +11,7 @@ import {
Trash2, Trash2,
type LucideIcon, type LucideIcon,
} from "lucide-react" } from "lucide-react"
import { SiYoutube } from "@icons-pack/react-simple-icons"
import type { import type {
BlindtestMode, BlindtestMode,
GameType, GameType,
@ -361,6 +362,16 @@ function TrackSubmission({
className="h-10 w-16 shrink-0 rounded object-cover" className="h-10 w-16 shrink-0 rounded object-cover"
/> />
<span className="line-clamp-2 flex-1 text-xs">{t.title}</span> <span className="line-clamp-2 flex-1 text-xs">{t.title}</span>
<a
href={`https://www.youtube.com/watch?v=${t.youtubeId}`}
target="_blank"
rel="noreferrer"
title="Ouvrir sur YouTube"
>
<Button size="icon-sm" variant="secondary">
<SiYoutube color="default" />
</Button>
</a>
<Button <Button
size="icon-sm" size="icon-sm"
variant="secondary" variant="secondary"
@ -389,7 +400,7 @@ function TrackSubmission({
disabled={submitting || !url.trim()} disabled={submitting || !url.trim()}
onClick={submit} onClick={submit}
> >
Ajouter <SiYoutube color="default" /> Ajouter
</Button> </Button>
</div> </div>
)} )}