remove unused imports

This commit is contained in:
jeffvli
2021-09-10 06:16:36 -07:00
parent 52ca6dcf90
commit e8e5d2be7d
3 changed files with 4 additions and 9 deletions

View File

@@ -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';

View File

@@ -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'
);

View File

@@ -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 {