chore:(deps): bump @types/react-select from 3.0.26 to 3.1.2 in /explorer (#14385)

Bumps [@types/react-select](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-select) from 3.0.26 to 3.1.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-select)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
dependabot[bot]
2021-01-12 09:48:51 +08:00
committed by GitHub
parent 6dfad0652f
commit 5f7d79e4f7
3 changed files with 11 additions and 8 deletions

View File

@@ -20,7 +20,10 @@ export function SearchBar() {
const location = useLocation();
const { cluster } = useCluster();
const onChange = ({ pathname }: ValueType<any>, meta: ActionMeta<any>) => {
const onChange = (
{ pathname }: ValueType<any, false>,
meta: ActionMeta<any>
) => {
if (meta.action === "select-option") {
history.push({ ...location, pathname });
setSearch("");
@@ -197,7 +200,7 @@ function buildOptions(rawSearch: string, cluster: Cluster) {
options: [
{
label: `Slot #${search}`,
value: search,
value: [search],
pathname: `/block/${search}`,
},
],
@@ -215,7 +218,7 @@ function buildOptions(rawSearch: string, cluster: Cluster) {
options: [
{
label: search,
value: search,
value: [search],
pathname: "/address/" + search,
},
],
@@ -226,7 +229,7 @@ function buildOptions(rawSearch: string, cluster: Cluster) {
options: [
{
label: search,
value: search,
value: [search],
pathname: "/tx/" + search,
},
],