From dee4f642cdba418351e7abb178b3cb8dbae2eeac Mon Sep 17 00:00:00 2001 From: eug-vs Date: Tue, 7 Apr 2020 15:37:27 +0300 Subject: fix: add mising types --- src/index.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 60453eb..be76722 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -51,7 +51,7 @@ const CustomPage: React.FC = () => { const [url, setUrl] = useState(''); const inputEl = useRef(null); - const handleParseUrl = () => { + const handleParseUrl = (): void => { setUrl(inputEl.current?.value || ''); } @@ -65,9 +65,7 @@ const CustomPage: React.FC = () => {