Skip to content

Commit

Permalink
fix: tabs story using number, not string
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGhadyani-Okta committed Oct 13, 2022
1 parent 0a60f36 commit 81dcd74
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export default {
};

const DefaultTemplate: Story = (args) => {
const [value, setValue] = React.useState(0);
const [value, setValue] = React.useState("0");

const handleChange = (_event: React.SyntheticEvent, newValue: number) => {
const handleChange = (_event: React.SyntheticEvent, newValue: string) => {
setValue(newValue);
};

Expand Down

0 comments on commit 81dcd74

Please sign in to comment.