From 6ca0f46af37ff8e5987a726bb34d40b6d0f9f7b1 Mon Sep 17 00:00:00 2001 From: Jixun Wu Date: Tue, 9 May 2023 21:02:52 +0100 Subject: [PATCH] chore: make download button work --- src/features/file-listing/FileListing.tsx | 25 +++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/features/file-listing/FileListing.tsx b/src/features/file-listing/FileListing.tsx index 0dd7b97..ef8fb74 100644 --- a/src/features/file-listing/FileListing.tsx +++ b/src/features/file-listing/FileListing.tsx @@ -1,4 +1,18 @@ -import { Avatar, Box, Table, TableContainer, Tbody, Td, Text, Th, Thead, Tr, Wrap, WrapItem } from '@chakra-ui/react'; +import { + Avatar, + Box, + Link, + Table, + TableContainer, + Tbody, + Td, + Text, + Th, + Thead, + Tr, + Wrap, + WrapItem, +} from '@chakra-ui/react'; import { ProcessState, selectFiles } from './fileListingSlice'; import { useAppSelector } from '../../hooks'; @@ -38,7 +52,14 @@ export function FileListing() { 播放 - 下载 + + {/* TODO: Use correct file name */} + {file.decrypted && ( + + 下载 + + )} + 删除