mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #6082 from thornbill/mixed-icon
This commit is contained in:
commit
23ee5e62a7
5 changed files with 153 additions and 81 deletions
|
@ -1,4 +1,5 @@
|
|||
import type { BaseItemDto } from '@jellyfin/sdk/lib/generated-client';
|
||||
import { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
|
||||
import Movie from '@mui/icons-material/Movie';
|
||||
import MusicNote from '@mui/icons-material/MusicNote';
|
||||
import Photo from '@mui/icons-material/Photo';
|
||||
|
@ -7,11 +8,11 @@ import Tv from '@mui/icons-material/Tv';
|
|||
import Theaters from '@mui/icons-material/Theaters';
|
||||
import MusicVideo from '@mui/icons-material/MusicVideo';
|
||||
import Book from '@mui/icons-material/Book';
|
||||
import Collections from '@mui/icons-material/Collections';
|
||||
import Queue from '@mui/icons-material/Queue';
|
||||
import Quiz from '@mui/icons-material/Quiz';
|
||||
import VideoLibrary from '@mui/icons-material/VideoLibrary';
|
||||
import Folder from '@mui/icons-material/Folder';
|
||||
import React, { FC } from 'react';
|
||||
import { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
|
||||
|
||||
interface LibraryIconProps {
|
||||
item: BaseItemDto
|
||||
|
@ -39,9 +40,11 @@ const LibraryIcon: FC<LibraryIconProps> = ({
|
|||
case CollectionType.Books:
|
||||
return <Book />;
|
||||
case CollectionType.Boxsets:
|
||||
return <Collections />;
|
||||
return <VideoLibrary />;
|
||||
case CollectionType.Playlists:
|
||||
return <Queue />;
|
||||
case undefined:
|
||||
return <Quiz />;
|
||||
default:
|
||||
return <Folder />;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue