-
Notifications
You must be signed in to change notification settings - Fork 3k
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 warning "Function components cannot be given refs" #49377
Fix warning "Function components cannot be given refs" #49377
Conversation
@allroundexperts 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-09-23.at.2.16.52.AM.movAndroid: mWeb ChromeScreen.Recording.2024-09-23.at.2.15.46.AM.moviOS: NativeScreen.Recording.2024-09-23.at.2.13.38.AM.moviOS: mWeb SafariScreen.Recording.2024-09-23.at.2.12.41.AM.movMacOS: Chrome / SafariScreen.Recording.2024-09-23.at.2.08.43.AM.movMacOS: DesktopScreen.Recording.2024-09-23.at.2.11.17.AM.mov |
}; | ||
|
||
type ReportTypingIndicatorProps = ReportTypingIndicatorOnyxProps & { | ||
type ReportTypingIndicatorProps = { | ||
// eslint-disable-next-line react/no-unused-prop-types -- This is used by withOnyx |
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.
I think this comment should be removed.
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.
Done
@bernhardoj Conflicts. |
Fixed |
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.
Looks good!
✋ 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/aldo-expensify in version: 9.0.43-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/aldo-expensify in version: 9.0.43-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.43-6 🚀
|
Details
"Function components cannot be given refs" warning is shown when open a self DM report.
Fixed Issues
$ #49062
PROPOSAL: #49062 (comment)
Tests
Offline tests
Same as Tests
QA Steps
DEV warning only.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4