Repository navigation
[TS migration] Migrate 'Banner.js' component to TypeScript - #31496
Conversation
| </View> | ||
| {props.shouldShowCloseButton && ( | ||
| <Tooltip text={props.translate('common.close')}> | ||
| {shouldShowCloseButton && !!onClose && ( |
There was a problem hiding this comment.
This will probably create a regression here as onClose/onPress props are optional.
There was a problem hiding this comment.
@fabioh8010 Since onClose is passed together with shouldShowCloseButton, and in your example shouldShowCloseButton isn't passed and will be false by default, I think it should be ok.
There was a problem hiding this comment.
NAB: Fine with this change but after this change, I am not sure about the need of shouldShowCloseButton prop. onClose prop should be enough.
| </View> | ||
| {props.shouldShowCloseButton && ( | ||
| <Tooltip text={props.translate('common.close')}> | ||
| {shouldShowCloseButton && !!onClose && ( |
|
@0xmiroslav Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
I am getting this error while running storybook. Anyone can help? Edit: fixed by installing |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemchrome.moviOS: Nativeios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movstorybook.movMacOS: Desktopdesktop.mov |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #25088 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
There was a problem hiding this comment.
looks like some places we use .ts and other .tsx extension, does it matter which one is used?
There was a problem hiding this comment.
@bondydaa Yeah, we use .tsx extension when a file has JSX syntax (components for example), otherwise it's just .ts
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/bondydaa in version: 1.4.3-0 🚀
|
|
🚀 Deployed to staging by https://github.com/bondydaa in version: 1.4.3-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.4.3-11 🚀
|
Details
[TS migration] Migrate 'Banner.js' component to TypeScript
Fixed Issues
$ #25088
PROPOSAL: N/A
Tests
Storybook:
App:
Offline tests
N/A
QA Steps
Storybook:
App:
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
Storybook