Skip to content

Commit 978fb81

Browse files
committed
make string type explicit
1 parent c8c9fe6 commit 978fb81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stories/ActionMenu.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export function ExternalOpenState(): JSX.Element {
118118
const [option, setOption] = useState('Select an option')
119119
const [open, setOpen] = useState(false)
120120
const onAction = (itemProps: ItemProps) => {
121-
setOption(itemProps.text)
121+
setOption(itemProps.text as string)
122122
}
123123
return (
124124
<>

0 commit comments

Comments
 (0)