mirror of
https://git.unlock-music.dev/um/um-react.git
synced 2024-11-23 23:22:18 +00:00
chore: wrap actions to a single condition
This commit is contained in:
parent
dd035d04a0
commit
afc95e0ed3
@ -95,19 +95,21 @@ export function FileRow({ id, file }: FileRowProps) {
|
|||||||
|
|
||||||
<Wrap>
|
<Wrap>
|
||||||
{isDecrypted && (
|
{isDecrypted && (
|
||||||
<WrapItem>
|
<>
|
||||||
<Button type="button" onClick={togglePlay}>
|
<WrapItem>
|
||||||
播放/暂停
|
<Button type="button" onClick={togglePlay}>
|
||||||
</Button>
|
播放/暂停
|
||||||
</WrapItem>
|
</Button>
|
||||||
|
</WrapItem>
|
||||||
|
<WrapItem>
|
||||||
|
{file.decrypted && (
|
||||||
|
<Link isExternal href={file.decrypted} download={decryptedName}>
|
||||||
|
<Button as="span">下载</Button>
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
|
</WrapItem>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
<WrapItem>
|
|
||||||
{file.decrypted && (
|
|
||||||
<Link isExternal href={file.decrypted} download={decryptedName}>
|
|
||||||
<Button as="span">下载</Button>
|
|
||||||
</Link>
|
|
||||||
)}
|
|
||||||
</WrapItem>
|
|
||||||
<WrapItem>
|
<WrapItem>
|
||||||
<Button type="button" onClick={handleDeleteRow}>
|
<Button type="button" onClick={handleDeleteRow}>
|
||||||
删除
|
删除
|
||||||
|
Loading…
Reference in New Issue
Block a user