We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
onDismiss
onClose
1 parent 300ba8f commit 34475dbCopy full SHA for 34475db
src/components/toast/CToaster.tsx
@@ -45,7 +45,7 @@ export const CToaster = forwardRef<HTMLDivElement, CToasterProps>(
45
React.cloneElement(push, {
46
index: index.current,
47
key: index.current,
48
- onDismiss: (index: number) =>
+ onClose: (index: number) =>
49
setToasts((state) => state.filter((i) => i.props.index !== index)),
50
}),
51
])
0 commit comments