From 8da47c5e43778d90ed233375332b22733f34f047 Mon Sep 17 00:00:00 2001 From: artemkolodko Date: Mon, 10 Jul 2023 09:38:11 +0100 Subject: [PATCH] Fix types --- src/components/ui/Search.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ui/Search.tsx b/src/components/ui/Search.tsx index 30de338..3082abc 100644 --- a/src/components/ui/Search.tsx +++ b/src/components/ui/Search.tsx @@ -14,7 +14,7 @@ import { useERC721Pool } from "src/hooks/ERC721_Pool"; import { useERC1155Pool } from "src/hooks/ERC1155_Pool"; import { FixedSizeList as List } from "react-window"; -import AutoSizer from "react-virtualized-auto-sizer"; +import AutoSizer, {Size} from "react-virtualized-auto-sizer"; import { Address } from "./Address"; import { config } from "../../config"; import {getAddressByName, OneCountryTLD} from "../../utils/oneCountry"; @@ -341,7 +341,7 @@ export const SearchInput = () => { - {({ height, width }) => ( + {({ height, width }: Size) => (