diff options
author | eug-vs <eug-vs@keemail.me> | 2020-04-07 15:37:27 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-04-07 15:37:27 +0300 |
commit | dee4f642cdba418351e7abb178b3cb8dbae2eeac (patch) | |
tree | c66cc19778baa7b4a0c3b0ea529395e4e9140bd9 /src/index.tsx | |
parent | 992857f22936ccbd93c3cd31e9f507c23cbd3dc5 (diff) | |
download | react-benzin-dee4f642cdba418351e7abb178b3cb8dbae2eeac.tar.gz |
fix: add mising types
Diffstat (limited to 'src/index.tsx')
-rw-r--r-- | src/index.tsx | 8 |
1 files 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<string>(''); const inputEl = useRef<HTMLInputElement>(null); - const handleParseUrl = () => { + const handleParseUrl = (): void => { setUrl(inputEl.current?.value || ''); } @@ -65,9 +65,7 @@ const CustomPage: React.FC = () => { <p> <TextField inputRef={inputEl} - variant="outlined" - color="secondary" - label="Markdown url" + variant="outlined" color="secondary" label="Markdown url" /> </p> <Button variant="contained" color="secondary" onClick={handleParseUrl} > @@ -84,7 +82,7 @@ const App: React.FC = () => { const classes = useStyles(); const [page, setPage] = useState<string>('home'); - const handleGoCustom = () => { + const handleGoCustom = (): void => { setPage('custom'); } |