-
Notifications
You must be signed in to change notification settings - Fork 315
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
refactor(Banner): Migrated from JS to TS #917
Conversation
+ Migrated `Banner` to Typescript + Migrated `BannerConstants` to Typescipt + Migrated `banner.jest` to Typescipt + Replaced type `string` with type `ReactNode` of `children` prop in `Button` + Added type `number` to `size` prop of `iconSubComponentProps` + Created a new type for `onClick` prop of `iconSubComponentProps`
@orrgottlieb Here you go ❇️ Let me know if any changes are required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@suvnshr Awesome job!
I'm approving as the comments are small, please tag me once you do these changes
again, really awesome job!
+ `onClose` can also be triggered due to a KeyboardEvent.
@orrgottlieb I've made the required changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for an awesome job! and thank you @suvnshr for the contribution, we will merge and add the appropriate label
P.S
If you have any feedback on the package.- i would love it if you can write it to me
thank you
Thanks for the kind words @orrgottlieb overall I liked the design system. Wanted to ask you whether the coz I didn't see its doc in the storybook Thanks again! |
Banner
to TypescriptBannerConstants
to Typescriptbanner.jest
to Typescriptstring
with typeReactNode
ofchildren
prop inButton
number
tosize
prop oficonSubComponentProps
onClick
prop oficonSubComponentProps
Related issue: #894
Basic
npm run plop
) to create a new component.PropTypes
.Style
NewComponent.modules.scss
file inside of theNewComponent
folder.Storybook
/src/NewComponent/__stories__/NewComponent.stories.js
file.Tests