mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-10-26 16:45:18 +00:00
Merge pull request #8591 from thornbill/update-mixed-library-icon
This commit is contained in:
3 files changed
+4
-4
No files matched your search
@@ -10,9 +10,9 @@ import Theaters from '@mui/icons-material/Theaters';
|
||||
import MusicVideo from '@mui/icons-material/MusicVideo';
|
||||
import Book from '@mui/icons-material/Book';
|
||||
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 OndemandVideo from '@mui/icons-material/OndemandVideo';
|
||||
import React, { FC } from 'react';
|
||||
|
||||
import { MetaView } from '../constants/metaView';
|
||||
@@ -51,7 +51,7 @@ const LibraryIcon: FC<LibraryIconProps> = ({
|
||||
case CollectionType.Playlists:
|
||||
return <Queue />;
|
||||
case undefined:
|
||||
return <Quiz />;
|
||||
return <OndemandVideo />;
|
||||
default:
|
||||
return <Folder />;
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ describe('getLibraryIcon()', () => {
|
||||
|
||||
it('Should return the correct icon for nonstandard types', () => {
|
||||
expect(getLibraryIcon(undefined))
|
||||
.toBe('quiz');
|
||||
.toBe('ondemand_video');
|
||||
expect(getLibraryIcon('channels'))
|
||||
.toBe('videocam');
|
||||
});
|
||||
|
||||
+1
-1
@@ -121,7 +121,7 @@ export function getLibraryIcon(library: CollectionType | string | null | undefin
|
||||
case 'channels':
|
||||
return 'videocam';
|
||||
case undefined:
|
||||
return 'quiz';
|
||||
return 'ondemand_video';
|
||||
default:
|
||||
return 'folder';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user