chore: wrap actions to a single condition

This commit is contained in:
鲁树人 2023-05-21 15:38:31 +01:00
parent 65e1e0caa2
commit 48b7a559ca

View File

@ -95,12 +95,12 @@ export function FileRow({ id, file }: FileRowProps) {
<Wrap>
{isDecrypted && (
<>
<WrapItem>
<Button type="button" onClick={togglePlay}>
/
</Button>
</WrapItem>
)}
<WrapItem>
{file.decrypted && (
<Link isExternal href={file.decrypted} download={decryptedName}>
@ -108,6 +108,8 @@ export function FileRow({ id, file }: FileRowProps) {
</Link>
)}
</WrapItem>
</>
)}
<WrapItem>
<Button type="button" onClick={handleDeleteRow}>