Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add delay prop to HolyLoader component #38

Closed
wants to merge 1 commit into from

Conversation

hootanht
Copy link

Fixes #2

Add delay prop to HolyLoader component to delay the start of the progress bar.

  • Add delay prop to HolyLoaderProps interface in src/index.tsx with a default value of 0.
  • Modify HolyLoader component in src/index.tsx to use the delay prop to delay the start of the progress bar.
  • Update useEffect hook in src/index.tsx to handle the delay logic before starting the progress bar.
  • Add documentation for the new delay prop in the API section of README.md.
  • Add tests in src/__tests__/HolyLoader.test.ts to verify the functionality of the delay prop.

Fixes tomcru#2

Add delay prop to HolyLoader component to delay the start of the progress bar.

* Add `delay` prop to `HolyLoaderProps` interface in `src/index.tsx` with a default value of 0.
* Modify `HolyLoader` component in `src/index.tsx` to use the `delay` prop to delay the start of the progress bar.
* Update `useEffect` hook in `src/index.tsx` to handle the delay logic before starting the progress bar.
* Add documentation for the new `delay` prop in the API section of `README.md`.
* Add tests in `src/__tests__/HolyLoader.test.ts` to verify the functionality of the `delay` prop.
@tomcru tomcru closed this Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: add delay prop
2 participants