How to use the nprogress.parentClassName function in nprogress

To help you get started, we’ve selected a few nprogress examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lskjs / ux / src / utils / Progress.js View on Github external
return NProgress._start(...args);
  } catch (err) {
    // console.log('err', err);
  }
};
NProgress._done = NProgress.done;
NProgress.done = (...args) => {
  try {
    return NProgress._done(...args);
  } catch (err) {
    // console.log('err', err);
  }
};

NProgress.Bar = ({ id }) => React.createElement('div', { id, className: 'nprogress' });
NProgress.parentClassName = 'nprogress-parent';

export default NProgress;