-
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
[No QA] Small refactors. #2744
[No QA] Small refactors. #2744
Conversation
@@ -155,7 +155,7 @@ class ReportActionsView extends React.Component { | |||
const previousLastSequenceNumber = lodashGet(lastItem(prevProps.reportActions), 'sequenceNumber'); | |||
const currentLastSequenceNumber = lodashGet(lastItem(this.props.reportActions), 'sequenceNumber'); | |||
const shouldRecordMaxAction = Visibility.isVisible() | |||
&& !(this.props.isDrawerOpen && this.props.isSmallScreenWidth); | |||
&& (!this.props.isSmallScreenWidth || !this.props.isDrawerOpen); |
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.
Can we please add a comment here and list out every situations where we will record the max action?
src/components/Tooltip/index.js
Outdated
@@ -174,7 +160,7 @@ class Tooltip extends PureComponent { | |||
tooltipTextStyle, | |||
pointerWrapperStyle, | |||
pointerStyle, | |||
} = getTooltipStyles( | |||
} = this.state.isReady ? getTooltipStyles( |
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.
Is this necessary? We are not using any of these styles anyway unless this.state.isReady === true
.
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 it's better to just move this style calculations to TooltipRenderedOnPageBody
as they are only used there.
Updated. Thanks |
🚀 Deployed to staging in version: 1.0.43-9🚀
|
🚀 Deployed to production in version: 1.0.44-0🚀
|
@marcaaron Please review.
Details
Tested On