mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
improve tracklistitem
This commit is contained in:
parent
813c7ec514
commit
437c17723b
@ -34,8 +34,8 @@ const TrackListItem = (props) => {
|
||||
}
|
||||
|
||||
return <Draggable
|
||||
key={track._id}
|
||||
draggableId={track._id}
|
||||
key={track._id ?? track.id}
|
||||
draggableId={track.id ?? track._id}
|
||||
index={props.index}
|
||||
>
|
||||
{
|
||||
@ -55,7 +55,7 @@ const TrackListItem = (props) => {
|
||||
<div
|
||||
className="music-studio-release-editor-tracks-list-item-progress"
|
||||
style={{
|
||||
"--upload-progress": `${props.progress}%`,
|
||||
"--upload-progress": `${props.uploading.progress}%`,
|
||||
}}
|
||||
/>
|
||||
|
||||
@ -63,6 +63,10 @@ const TrackListItem = (props) => {
|
||||
<span>{props.index + 1}</span>
|
||||
</div>
|
||||
|
||||
{
|
||||
props.uploading.working && <Icons.LoadingOutlined />
|
||||
}
|
||||
|
||||
<Image
|
||||
src={track.cover}
|
||||
height={25}
|
||||
|
Loading…
x
Reference in New Issue
Block a user