Skip to content

Commit

Permalink
make string type explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
VanAnderson committed May 4, 2021
1 parent c8c9fe6 commit 978fb81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stories/ActionMenu.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export function ExternalOpenState(): JSX.Element {
const [option, setOption] = useState('Select an option')
const [open, setOpen] = useState(false)
const onAction = (itemProps: ItemProps) => {
setOption(itemProps.text)
setOption(itemProps.text as string)
}
return (
<>
Expand Down

0 comments on commit 978fb81

Please sign in to comment.