Browse Source

fix errors

- remove unused imports
- add types for react-virtualized
master
jeffvli 3 years ago
parent
commit
facfbfcdfa
  1. 1
      package.json
  2. 3
      src/components/library/LibraryView.tsx
  3. 3
      src/components/starred/StarredView.tsx
  4. 8
      yarn.lock

1
package.json

@ -175,6 +175,7 @@
"@types/react-redux": "^7.1.18",
"@types/react-router-dom": "^5.1.6",
"@types/react-test-renderer": "^16.9.3",
"@types/react-virtualized": "^9.21.13",
"@types/react-virtualized-auto-sizer": "^1.0.1",
"@types/react-window": "^1.8.5",
"@types/styled-components": "^5.1.12",

3
src/components/library/LibraryView.tsx

@ -1,5 +1,4 @@
/* eslint-disable react/button-has-type */
import React, { useEffect, useState } from 'react';
import React, { useState } from 'react';
import { Loader as RsuiteLoader, Nav, SelectPicker } from 'rsuite';
import { useQuery } from 'react-query';
import VisibilitySensor from 'react-visibility-sensor';

3
src/components/starred/StarredView.tsx

@ -1,5 +1,4 @@
/* eslint-disable no-lonely-if */
import React, { useEffect, useState } from 'react';
import React, { useState } from 'react';
import { useQuery } from 'react-query';
import { Nav } from 'rsuite';
import settings from 'electron-settings';

8
yarn.lock

@ -1845,6 +1845,14 @@
dependencies:
"@types/react" "*"
"@types/react-virtualized@^9.21.13":
version "9.21.13"
resolved "https://registry.yarnpkg.com/@types/react-virtualized/-/react-virtualized-9.21.13.tgz#4222173abe7c9ed7504c75886c8367502ac7b9f1"
integrity sha512-tCIQ5wDKj+QJ3sMzjPKSLY0AXsznt+ovAUcq+JCLjPBOcAHbPt4FraGT9HKYEFfmp9E6+ELuN49i5bWtuBmi3w==
dependencies:
"@types/prop-types" "*"
"@types/react" "*"
"@types/react-window@^1.8.5":
version "1.8.5"
resolved "https://registry.yarnpkg.com/@types/react-window/-/react-window-1.8.5.tgz#285fcc5cea703eef78d90f499e1457e9b5c02fc1"

Loading…
Cancel
Save