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:
6
explorer/package-lock.json
generated
6
explorer/package-lock.json
generated
@ -3320,9 +3320,9 @@
|
||||
}
|
||||
},
|
||||
"@types/react-select": {
|
||||
"version": "3.0.26",
|
||||
"resolved": "https://registry.npmjs.org/@types/react-select/-/react-select-3.0.26.tgz",
|
||||
"integrity": "sha512-rAaiD0SFkBi3PUwp1DrJV04CobPl2LuZXF+kv6MKw8kaeGo82xTOZzjM8DDi4lrdkqGbInZiE2QO9nIJm3bqgw==",
|
||||
"version": "3.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@types/react-select/-/react-select-3.1.2.tgz",
|
||||
"integrity": "sha512-ygvR/2FL87R2OLObEWFootYzkvm67LRA+URYEAcBuvKk7IXmdsnIwSGm60cVXGaqkJQHozb2Cy1t94tCYb6rJA==",
|
||||
"requires": {
|
||||
"@types/react": "*",
|
||||
"@types/react-dom": "*",
|
||||
|
@ -20,7 +20,7 @@
|
||||
"@types/react": "^17.0.0",
|
||||
"@types/react-dom": "^17.0.0",
|
||||
"@types/react-router-dom": "^5.1.7",
|
||||
"@types/react-select": "^3.0.26",
|
||||
"@types/react-select": "^3.1.2",
|
||||
"@types/socket.io-client": "^1.4.34",
|
||||
"bn.js": "^5.1.3",
|
||||
"bootstrap": "^4.5.3",
|
||||
|
@ -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,
|
||||
},
|
||||
],
|
||||
|
Reference in New Issue
Block a user