chore: wrap actions to a single condition
This commit is contained in:
parent
65e1e0caa2
commit
48b7a559ca
@ -95,12 +95,12 @@ export function FileRow({ id, file }: FileRowProps) {
|
|||||||
|
|
||||||
<Wrap>
|
<Wrap>
|
||||||
{isDecrypted && (
|
{isDecrypted && (
|
||||||
|
<>
|
||||||
<WrapItem>
|
<WrapItem>
|
||||||
<Button type="button" onClick={togglePlay}>
|
<Button type="button" onClick={togglePlay}>
|
||||||
播放/暂停
|
播放/暂停
|
||||||
</Button>
|
</Button>
|
||||||
</WrapItem>
|
</WrapItem>
|
||||||
)}
|
|
||||||
<WrapItem>
|
<WrapItem>
|
||||||
{file.decrypted && (
|
{file.decrypted && (
|
||||||
<Link isExternal href={file.decrypted} download={decryptedName}>
|
<Link isExternal href={file.decrypted} download={decryptedName}>
|
||||||
@ -108,6 +108,8 @@ export function FileRow({ id, file }: FileRowProps) {
|
|||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
</WrapItem>
|
</WrapItem>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<WrapItem>
|
<WrapItem>
|
||||||
<Button type="button" onClick={handleDeleteRow}>
|
<Button type="button" onClick={handleDeleteRow}>
|
||||||
删除
|
删除
|
||||||
|
Loading…
Reference in New Issue
Block a user