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

Migrate Counter component to TS #322

Merged

Conversation

Souptik2001
Copy link
Contributor

@Souptik2001 Souptik2001 commented May 14, 2024

Description of the Change

Migrate the Counter component to TS.
It also migrates StyledComponentContext to TS as it was related to this and not separately listed in the issue.
Also added a readme.md file for this component, that was missing.

Related issue - #295

How to test the Change

  • Added a new block named "Counter Example", which can be used to test the functionality of the component.
Screen.Recording.2024-05-14.at.3.47.27.PM.mov

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

Copy link
Member

@Antonio-Laguna Antonio-Laguna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Souptik2001 you're killing it! Thanks a lot for your contribution! Love the README and the carefulness with the types! Nice job!

I left a minor comment but this LGTM!

components/counter/index.tsx Show resolved Hide resolved
components/counter/readme.md Outdated Show resolved Hide resolved
Copy link
Member

@fabiankaegy fabiankaegy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this 🚀 Thanks for your help with this :)

@fabiankaegy fabiankaegy merged commit 3612e21 into 10up:develop May 14, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants