Quernest / mui-modal-provider

🌞 Context API and Hooks based Modal Provider for react material-ui framework
MIT License
77 stars 10 forks source link

#88 added hideOnClose flag #89

Closed Quernest closed 10 months ago

Quernest commented 10 months ago
const modal = showModal(
  SimpleDialog,
  {
    onClose: (event, reason) => {
      if (reason === 'backdropClick') {
        modal.hide(); // hide modal manually
      }
    },
  },
  { hideOnClose: false } // enable feature flag
);
codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (b6c8bc1) 100.00% compared to head (56ab7a8) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #89 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 8 8 Lines 160 160 Branches 32 32 ========================================= Hits 160 160 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.