From 14c52a0051922048d7647671d6d66a601cd40bac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Torrente?= Date: Wed, 17 Apr 2024 11:42:29 -0400 Subject: [PATCH] Fix unused param type issue. --- src/components/Navigation.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Navigation.tsx b/src/components/Navigation.tsx index d445345..7c6deab 100644 --- a/src/components/Navigation.tsx +++ b/src/components/Navigation.tsx @@ -80,7 +80,7 @@ function a11yProps(index: number) { export default function Navigation() { const [value, setValue] = React.useState(0); - const handleChange = (e: React.ChangeEvent<{}>, newValue: number) => { + const handleChange = (newValue: number) => { setValue(newValue); }; @@ -90,7 +90,7 @@ export default function Navigation() { orientation="vertical" variant="scrollable" value={value} - onChange={handleChange} + onChange={(_, newValue) => handleChange(newValue)} aria-label="Vertical tabs example" >