diff --git a/src/components/card/Card.tsx b/src/components/card/Card.tsx index 83915e9..aa26f88 100644 --- a/src/components/card/Card.tsx +++ b/src/components/card/Card.tsx @@ -1,7 +1,7 @@ import React, { useState } from 'react'; import path from 'path'; import settings from 'electron-settings'; -import { Icon, Modal } from 'rsuite'; +import { Icon } from 'rsuite'; import { useHistory } from 'react-router-dom'; import { useQueryClient } from 'react-query'; import cacheImage from '../shared/cacheImage'; diff --git a/src/components/playlist/PlaylistList.tsx b/src/components/playlist/PlaylistList.tsx index 46154f3..00e5725 100644 --- a/src/components/playlist/PlaylistList.tsx +++ b/src/components/playlist/PlaylistList.tsx @@ -1,7 +1,7 @@ import React, { useState } from 'react'; import { useQuery } from 'react-query'; import { useHistory } from 'react-router-dom'; -import { Tag, SelectPicker } from 'rsuite'; +import { Tag } from 'rsuite'; import settings from 'electron-settings'; import useSearchQuery from '../../hooks/useSearchQuery'; import { getPlaylists } from '../../api/api'; @@ -11,14 +11,9 @@ import GenericPage from '../layout/GenericPage'; import GenericPageHeader from '../layout/GenericPageHeader'; import GridViewType from '../viewtypes/GridViewType'; -const PLAYLIST_SORT_TYPES = [ - { label: 'Date Modified', value: 'dateModified' }, - { label: 'Date Created', value: 'dateCreated' }, -]; - const PlaylistList = () => { const history = useHistory(); - const [sortBy, setSortBy] = useState(''); + const [sortBy] = useState(''); const [viewType, setViewType] = useState( settings.getSync('playlistViewType') || 'list' ); diff --git a/src/components/viewtypes/ListViewTable.tsx b/src/components/viewtypes/ListViewTable.tsx index 70b22d0..debb6e1 100644 --- a/src/components/viewtypes/ListViewTable.tsx +++ b/src/components/viewtypes/ListViewTable.tsx @@ -6,7 +6,7 @@ import path from 'path'; import settings from 'electron-settings'; import { useQueryClient } from 'react-query'; import { nanoid } from 'nanoid'; -import { Table, Grid, Row, Col, Modal } from 'rsuite'; +import { Table, Grid, Row, Col } from 'rsuite'; import { useHistory } from 'react-router'; import { LazyLoadImage } from 'react-lazy-load-image-component'; import {