Sergih28 / groc

Grind for the vision, revamp for precision, organize with decision, complete the mission.
MIT License
3 stars 0 forks source link

Made Counter component, counter hook and story #82

Closed ehdlg closed 9 months ago

ehdlg commented 10 months ago

What type of PR is this? (Check all applicable)

Description

Added a Counter component, useGetCounter hook and a story to test in Storybook

Replace this text with a clear and concise description of what you've done.

Related Issues

Please link related issues by removing lines that are not applicable.

Checklist

Before submitting this pull request, please make sure you have done the following:

Code Quality

Updated documentation?

Added tests for your changes?

UI Changes

Additional Information

Replace this text with any additional information.

Sergih28 commented 10 months ago

@ehdlg

Make it count to 0 and from 0.

Make it pausable.

Sergih28 commented 10 months ago

@ehdlg Create the necessary tests for this feature please. Use react testing library.

Sergih28 commented 10 months ago

Update second commit name to match the new hook name.

ehdlg commented 9 months ago

Before merging, we require a solution to mock setInterval and update the counter value in the DOM within the unit test for this component