From d18cdd520588daa17b0cd20d8c1be1612e535db6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guillois?= Date: Mon, 10 Feb 2020 11:00:33 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Corrige=20le=20type=20checking?= =?UTF-8?q?=20sur=20la=20recherche?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/SearchBar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/components/SearchBar.tsx b/source/components/SearchBar.tsx index 6ae1884fe..91b7eda91 100644 --- a/source/components/SearchBar.tsx +++ b/source/components/SearchBar.tsx @@ -18,6 +18,7 @@ type SearchBarProps = { } type Option = Pick +type Result = Pick export default function SearchBar({ rules, @@ -27,7 +28,7 @@ export default function SearchBar({ const sitePaths = useContext(SitePathsContext) const [input, setInput] = useState('') const [selectedOption, setSelectedOption] = useState