@etsoo/materialui 1.2.94 → 1.2.95

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.
package/lib/NotifierMU.js CHANGED
@@ -224,10 +224,10 @@ export class NotificationMU extends NotificationReact {
224
224
  createPopup(_props, className) {
225
225
  // Destruct
226
226
  // dismiss will trigger onReturn callback
227
- const { content, dismiss, id, open, renderSetup } = this;
227
+ const { content, id, open } = this;
228
228
  // Setup callback
229
- const options = renderSetup ? renderSetup({}) : undefined;
230
- return (React.createElement(Popover, { key: id, open: open, className: className, onClose: () => dismiss(), ...options }, content));
229
+ const options = this.renderSetup ? this.renderSetup({}) : undefined;
230
+ return (React.createElement(Popover, { key: id, open: open, className: className, onClose: () => this.dismiss(), ...options }, content));
231
231
  }
232
232
  // Create loading
233
233
  createLoading(_props, className) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.2.94",
3
+ "version": "1.2.95",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -481,17 +481,17 @@ export class NotificationMU extends NotificationReact {
481
481
  private createPopup(_props: NotificationRenderProps, className?: string) {
482
482
  // Destruct
483
483
  // dismiss will trigger onReturn callback
484
- const { content, dismiss, id, open, renderSetup } = this;
484
+ const { content, id, open } = this;
485
485
 
486
486
  // Setup callback
487
- const options = renderSetup ? renderSetup({}) : undefined;
487
+ const options = this.renderSetup ? this.renderSetup({}) : undefined;
488
488
 
489
489
  return (
490
490
  <Popover
491
491
  key={id}
492
492
  open={open}
493
493
  className={className}
494
- onClose={() => dismiss()}
494
+ onClose={() => this.dismiss()}
495
495
  {...options}
496
496
  >
497
497
  {content}