add global percent to song entry component
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
songName: string;
|
||||
artistName: string | null;
|
||||
fileName?: string | null;
|
||||
globalPercent: number | null;
|
||||
};
|
||||
|
||||
let {
|
||||
@@ -34,6 +35,7 @@
|
||||
songName,
|
||||
artistName,
|
||||
fileName = null,
|
||||
globalPercent,
|
||||
}: SongEntryProps = $props();
|
||||
|
||||
const typeLabelMap: Record<number, string> = {
|
||||
@@ -92,6 +94,9 @@
|
||||
<span class="rounded bg-muted px-2 py-0.5 text-sm text-muted-foreground"
|
||||
>{displayTypeNumber}</span
|
||||
>
|
||||
<span class=" text-muted-foreground">
|
||||
{globalPercent}%
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="mt-1 w-fit text-foreground/80">
|
||||
|
||||
Reference in New Issue
Block a user