mirror of
https://git.unlock-music.dev/um/um-react.git
synced 2024-11-23 22:02:19 +00:00
chore: make download button work
This commit is contained in:
parent
72b3a9cec9
commit
2c56c22c74
@ -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 { ProcessState, selectFiles } from './fileListingSlice';
|
||||||
import { useAppSelector } from '../../hooks';
|
import { useAppSelector } from '../../hooks';
|
||||||
@ -38,7 +52,14 @@ export function FileListing() {
|
|||||||
<Td>
|
<Td>
|
||||||
<Wrap>
|
<Wrap>
|
||||||
<WrapItem>播放</WrapItem>
|
<WrapItem>播放</WrapItem>
|
||||||
<WrapItem>下载</WrapItem>
|
<WrapItem>
|
||||||
|
{/* TODO: Use correct file name */}
|
||||||
|
{file.decrypted && (
|
||||||
|
<Link isExternal href={file.decrypted} download="test.flac">
|
||||||
|
下载
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
|
</WrapItem>
|
||||||
<WrapItem>删除</WrapItem>
|
<WrapItem>删除</WrapItem>
|
||||||
</Wrap>
|
</Wrap>
|
||||||
</Td>
|
</Td>
|
||||||
|
Loading…
Reference in New Issue
Block a user