feature/spotify-export #8
1 changed files with 12 additions and 1 deletions
|
|
@ -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>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue