Skip to content

Commit

Permalink
Fix type issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariatorrentedev committed Apr 17, 2024
1 parent 284a2c9 commit 0689dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function a11yProps(index: number) {
export default function Navigation() {
const [value, setValue] = React.useState(0);

const handleChange = (newValue: number) => {
const handleChange = (e: React.ChangeEvent<{}>, newValue: number) => {
setValue(newValue);
};

Expand All @@ -90,7 +90,7 @@ export default function Navigation() {
orientation="vertical"
variant="scrollable"
value={value}
onChange={(e, newValue) => handleChange(newValue)}
onChange={handleChange}
aria-label="Vertical tabs example"
>
<Tab label="About" {...a11yProps(0)} />
Expand Down

0 comments on commit 0689dd4

Please sign in to comment.