@etsoo/react 1.6.5 → 1.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -42,6 +42,10 @@ export interface NotificationReactCallProps extends NotificationCallProps {
|
|
|
42
42
|
* Primary button props
|
|
43
43
|
*/
|
|
44
44
|
primaryButton?: {};
|
|
45
|
+
/**
|
|
46
|
+
* Buttons to override default buttons
|
|
47
|
+
*/
|
|
48
|
+
buttons?: (callback: <T>(event: React.MouseEvent<HTMLButtonElement>, value?: T) => Promise<void>) => React.ReactNode;
|
|
45
49
|
}
|
|
46
50
|
/**
|
|
47
51
|
* React notification interface
|
package/package.json
CHANGED
package/src/notifier/Notifier.ts
CHANGED
|
@@ -62,6 +62,16 @@ export interface NotificationReactCallProps extends NotificationCallProps {
|
|
|
62
62
|
* Primary button props
|
|
63
63
|
*/
|
|
64
64
|
primaryButton?: {};
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Buttons to override default buttons
|
|
68
|
+
*/
|
|
69
|
+
buttons?: (
|
|
70
|
+
callback: <T>(
|
|
71
|
+
event: React.MouseEvent<HTMLButtonElement>,
|
|
72
|
+
value?: T
|
|
73
|
+
) => Promise<void>
|
|
74
|
+
) => React.ReactNode;
|
|
65
75
|
}
|
|
66
76
|
|
|
67
77
|
/**
|