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

fix(web): use right type for icon name at core/EmptyState #1711

Merged
merged 3 commits into from
Oct 29, 2024

Conversation

dgdavid
Copy link
Contributor

@dgdavid dgdavid commented Oct 29, 2024

Problem

Unfortunately, #1690 broken a type import at core/EmptyState component that has been cough by OBS

Solution

To use the right type (d9554b1) and take the opportunity for migrating the component to TypeScript (9719d0b) which makes possible to get rid of a @ts-expect-error directive (749db9e)

Testing

Tested manually by running NODE_ENV=production npm run build

It was broken when migration layout/Icon.jsx to layout/Icon.tsx in
#1690
Since it has been touched in a previous commit, moves it to TypeScript
although still being an unfinished component and its future is even
unknown.
That was at core/EmptyState because props were not well defined when
using JSDoc. Now these props are properly defined with TypeScript, such
a directive is no longer necessary.
@dgdavid dgdavid merged commit aa2bb2c into master Oct 29, 2024
6 checks passed
@dgdavid dgdavid deleted the fix-icon-name-type branch October 29, 2024 11:16
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.

2 participants