From 48b7a559ca7da62f26cb10157ca26a103effa6ea Mon Sep 17 00:00:00 2001 From: Jixun Wu Date: Sun, 21 May 2023 15:38:31 +0100 Subject: [PATCH] chore: wrap actions to a single condition --- src/features/file-listing/FileRow.tsx | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/features/file-listing/FileRow.tsx b/src/features/file-listing/FileRow.tsx index 7e4fe72..71d7133 100644 --- a/src/features/file-listing/FileRow.tsx +++ b/src/features/file-listing/FileRow.tsx @@ -95,19 +95,21 @@ export function FileRow({ id, file }: FileRowProps) { {isDecrypted && ( - - - + <> + + + + + {file.decrypted && ( + + + + )} + + )} - - {file.decrypted && ( - - - - )} -