mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-20 05:56:10 +05:00
Adds Sidebar icons to filter
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
useTheme,
|
||||
} from '@material-ui/core'
|
||||
import { HighlightOff as HighlightOffIcon } from '@material-ui/icons'
|
||||
import { TORRENT_CATEGORIES } from 'components/categories'
|
||||
|
||||
import {
|
||||
ClearPosterButton,
|
||||
@@ -69,8 +70,6 @@ export default function RightSideComponent({
|
||||
setIsUserInteractedWithPoster(true)
|
||||
}
|
||||
|
||||
const torrentCategories = ['Movies', 'Series', 'Music', 'Other', 'Unknown']
|
||||
|
||||
return (
|
||||
<RightSide>
|
||||
<RightSideContainer isHidden={!isTorrentSourceCorrect || (isHashAlreadyExists && !isEditMode)}>
|
||||
@@ -151,8 +150,8 @@ export default function RightSideComponent({
|
||||
fullWidth
|
||||
defaultValue='Unknown'
|
||||
>
|
||||
{torrentCategories.map(category => (
|
||||
<MenuItem value={category}>{category}</MenuItem>
|
||||
{TORRENT_CATEGORIES.map(category => (
|
||||
<MenuItem value={category.name}>{category.name}</MenuItem>
|
||||
))}
|
||||
</Select>
|
||||
</FormControl>
|
||||
|
||||
Reference in New Issue
Block a user