fix(Toast)!: rename click to onClick for consistency

This commit is contained in:
Benjamin Canac
2025-02-05 13:44:12 +01:00
parent 2c192ac145
commit 533e889589
3 changed files with 4 additions and 4 deletions

View File

@@ -98,7 +98,7 @@ function addToast() {
add({
id,
...template,
click(toast) {
onClick(toast) {
console.log(`Toast ${toast.id} clicked`)
}
})