lms/resources/js/lib/hide-progress.ts
2025-12-15 12:26:23 +01:00

10 lines
242 B
TypeScript

import { router } from '@inertiajs/react';
import NProgress from 'nprogress';
const hideProgress = () => {
router.on('start', () => NProgress.remove());
router.on('finish', () => NProgress.remove());
};
export default hideProgress;