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 TypeScript types to ActionableNotification, ToastNotification, InlineNotification, NotificationActionButton, NotificationButton #13228

Closed
Tracked by #12513
tw15egan opened this issue Feb 24, 2023 · 3 comments · Fixed by #13621
Labels
area: typescript hacktoberfest See https://hacktoberfest.com/ needs: community contribution Due to roadmap and resource availability, we are looking for outside contributions on this issue. role: dev 🤖 status: blocked 🙅‍♀️ status: help wanted 👐

Comments

@tw15egan
Copy link
Collaborator

No description provided.

@kubijo
Copy link
Contributor

kubijo commented Apr 16, 2023

I'd like to work on this

kubijo added a commit to kubijo/carbon that referenced this issue Apr 18, 2023
kubijo added a commit to kubijo/carbon that referenced this issue Apr 18, 2023
kubijo added a commit to kubijo/carbon that referenced this issue Apr 19, 2023
@tay1orjones tay1orjones added status: help wanted 👐 role: dev 🤖 hacktoberfest See https://hacktoberfest.com/ area: typescript needs: community contribution Due to roadmap and resource availability, we are looking for outside contributions on this issue. labels Apr 20, 2023
kubijo added a commit to kubijo/carbon that referenced this issue Apr 21, 2023
kubijo added a commit to kubijo/carbon that referenced this issue Apr 21, 2023
kubijo added a commit to kubijo/carbon that referenced this issue Apr 27, 2023
kubijo added a commit to kubijo/carbon that referenced this issue Apr 27, 2023
@kglickman
Copy link

We have a renderer that sets the subtitle for the notification and it works fine but we're getting an error
checkPropTypes.js:20 Warning: Failed prop type: Invalid prop subtitleof typeobjectsupplied toToastNotification, expected string.

There are many other strings in Carbon that are declared as PropTypes.node. Could the notification ones be declared that way, too?

@francinelucca
Copy link
Collaborator

Confirmed we'll want to hold off on this until #13811 merges so we can extend button props

kubijo added a commit to kubijo/carbon that referenced this issue Jun 17, 2023
kubijo added a commit to kubijo/carbon that referenced this issue Jun 17, 2023
kubijo added a commit to kubijo/carbon that referenced this issue Jun 17, 2023
@kodiakhq kodiakhq bot closed this as completed in #13621 Jun 19, 2023
kodiakhq bot added a commit that referenced this issue Jun 19, 2023
* feat(xNotification): rename to tsx #13228

* feat(xNotification): add types #13228

* Update packages/react/src/components/Notification/Notification.tsx

* Update packages/react/src/components/Notification/Notification.tsx

---------

Co-authored-by: Andrea N. Cardona <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: typescript hacktoberfest See https://hacktoberfest.com/ needs: community contribution Due to roadmap and resource availability, we are looking for outside contributions on this issue. role: dev 🤖 status: blocked 🙅‍♀️ status: help wanted 👐
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants