8000 refactor(CToaster): rename `onDismiss` to `onClose` · v-rr/coreui-react@34475db · GitHub
[go: up one dir, main page]

Skip to content

Commit 34475db

Browse files
committed
refactor(CToaster): rename onDismiss to onClose
1 parent 300ba8f commit 34475db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/toast/CToaster.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const CToaster = forwardRef<HTMLDivElement, CToasterProps>(
4545
React.cloneElement(push, {
4646
index: index.current,
4747
key: index.current,
48-
onDismiss: (index: number) =>
48+
onClose: (index: number) =>
4949
setToasts((state) => state.filter((i) => i.props.index !== index)),
5050
}),
5151
])

0 commit comments

Comments
 (0)
0