eBay / nice-modal-react
Showing 1 of 3 files from the diff.
Other files ignored by Codecov
src/index.test.js has changed.
README.md has changed.

@@ -502,6 +502,17 @@
Loading
502 502
    },
503 503
  };
504 504
};
505 +
export const antdModalV5 = (
506 +
  modal: NiceModalHandler,
507 +
): { open: boolean; onCancel: () => void; onOk: () => void; afterClose: () => void } => {
508 +
  const {onOk, onCancel, afterClose} = antdModal(modal)
509 +
  return {
510 +
    open: modal.visible,
511 +
    onOk,
512 +
    onCancel,
513 +
    afterClose,
514 +
  };
515 +
};
505 516
export const antdDrawer = (
506 517
  modal: NiceModalHandler,
507 518
): { visible: boolean; onClose: () => void; afterVisibleChange: (visible: boolean) => void } => {
@@ -516,6 +527,16 @@
Loading
516 527
    },
517 528
  };
518 529
};
530 +
export const antdDrawerV5 = (
531 +
  modal: NiceModalHandler,
532 +
): { open: boolean; onClose: () => void; afterOpenChange: (visible: boolean) => void } => {
533 +
  const {onClose, afterVisibleChange: afterOpenChange} = antdDrawer(modal)
534 +
  return {
535 +
    open: modal.visible,
536 +
    onClose,
537 +
    afterOpenChange,
538 +
  };
539 +
};
519 540
export const muiDialog = (modal: NiceModalHandler): { open: boolean; onClose: () => void; onExited: () => void } => {
520 541
  return {
521 542
    open: modal.visible,
Files Coverage
src/index.tsx 100.00%
Project Totals (1 files) 100.00%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading