mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 16:30:45 +01:00
fix(Toast)!: rename click to onClick for consistency
This commit is contained in:
@@ -4,7 +4,7 @@ import type { ToastProps } from '../types'
|
||||
|
||||
export interface Toast extends Omit<ToastProps, 'defaultOpen'> {
|
||||
id: string | number
|
||||
click?: (toast: Toast) => void
|
||||
onClick?: (toast: Toast) => void
|
||||
}
|
||||
|
||||
export function useToast() {
|
||||
|
||||
Reference in New Issue
Block a user