mirror of
https://git.unlock-music.dev/um/um-react.git
synced 2024-11-27 19:02:16 +00:00
feat: hide metadata until is processed
This commit is contained in:
parent
c0737a341b
commit
7a12d6c6a1
@ -1,6 +1,6 @@
|
|||||||
import { Avatar, Box, Table, TableContainer, Tbody, Td, Text, Th, Thead, Tr, Wrap, WrapItem } from '@chakra-ui/react';
|
import { Avatar, Box, Table, TableContainer, Tbody, Td, Text, Th, Thead, Tr, Wrap, WrapItem } from '@chakra-ui/react';
|
||||||
|
|
||||||
import { selectFiles } from './fileListingSlice';
|
import { ProcessState, selectFiles } from './fileListingSlice';
|
||||||
import { useAppSelector } from '../../hooks';
|
import { useAppSelector } from '../../hooks';
|
||||||
|
|
||||||
export function FileListing() {
|
export function FileListing() {
|
||||||
@ -27,9 +27,13 @@ export function FileListing() {
|
|||||||
<Box as="h4" fontWeight="semibold" mt="1">
|
<Box as="h4" fontWeight="semibold" mt="1">
|
||||||
{file.metadata.name || file.fileName}
|
{file.metadata.name || file.fileName}
|
||||||
</Box>
|
</Box>
|
||||||
|
{file.state === ProcessState.COMPLETE && (
|
||||||
|
<>
|
||||||
<Text>专辑: {file.metadata.album}</Text>
|
<Text>专辑: {file.metadata.album}</Text>
|
||||||
<Text>艺术家: {file.metadata.artist}</Text>
|
<Text>艺术家: {file.metadata.artist}</Text>
|
||||||
<Text>专辑艺术家: {file.metadata.albumArtist}</Text>
|
<Text>专辑艺术家: {file.metadata.albumArtist}</Text>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</Td>
|
</Td>
|
||||||
<Td>
|
<Td>
|
||||||
<Wrap>
|
<Wrap>
|
||||||
|
Loading…
Reference in New Issue
Block a user