aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-04-07 15:37:27 +0300
committereug-vs <eug-vs@keemail.me>2020-04-07 15:37:27 +0300
commitdee4f642cdba418351e7abb178b3cb8dbae2eeac (patch)
treec66cc19778baa7b4a0c3b0ea529395e4e9140bd9
parent992857f22936ccbd93c3cd31e9f507c23cbd3dc5 (diff)
downloadreact-benzin-dee4f642cdba418351e7abb178b3cb8dbae2eeac.tar.gz
fix: add mising types
-rw-r--r--src/index.tsx8
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');
}