update react scripts dependency (#255)
* Move "dependencies" close to "devDependencies" Makes it easier to have a quick overview * Upgrade "react-scripts" to latest version With new versions of node (> v16) the build scripts fails with the following error "error:0308010C:digital envelope routines::unsupported" * Upgrade "react-scripts" to v5 - Fix import * Upgrade "eslint" dependencies The latest version of "react-scripts" uses eslint v8 causing the following error "... ERROR in Plugin "react" was conflicted between ".eslintrc.js" >> eslint-config-airbnb ..." * Upgrade "eslint" dependencies - Allow nested components as props * Upgrade "eslint" dependencies - Fix lint issues
This commit is contained in:
@@ -11,7 +11,7 @@ import NavbarContext from 'components/context/NavbarContext';
|
||||
import MangaGrid from 'components/MangaGrid';
|
||||
import LangSelect from 'components/navbar/action/LangSelect';
|
||||
import AppbarSearch from 'components/util/AppbarSearch';
|
||||
import PQueue from 'p-queue/dist/index';
|
||||
import PQueue from 'p-queue';
|
||||
import React, { useContext, useEffect, useState } from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { StringParam, useQueryParam } from 'use-query-params';
|
||||
@@ -54,11 +54,7 @@ const SearchAll: React.FC = () => {
|
||||
|
||||
useEffect(() => {
|
||||
setTitle('Global Search');
|
||||
setAction(
|
||||
<>
|
||||
<AppbarSearch />
|
||||
</>,
|
||||
);
|
||||
setAction(<AppbarSearch />);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -222,7 +218,8 @@ const SearchAll: React.FC = () => {
|
||||
</>
|
||||
);
|
||||
}
|
||||
return <></>;
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
export default SearchAll;
|
||||
|
||||
Reference in New Issue
Block a user