-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Upgrade wp-prettier to version 2.8.5 #74775
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~1 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Async-loaded Components (~1 bytes added 📈 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
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.
LGTM, thank you @jsnajdr 🚀
{ ! config.isEnabled( 'desktop' ) && | ||
this.isHorizontal() && | ||
! this.userCreationComplete() && ( | ||
<div className="signup-form__separator"> | ||
<div className="signup-form__separator-text">{ this.props.translate( 'or' ) }</div> | ||
</div> | ||
) } | ||
{ showSeparator && ( | ||
<div className="signup-form__separator"> | ||
<div className="signup-form__separator-text">{ this.props.translate( 'or' ) }</div> | ||
</div> | ||
) } |
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.
Nice.
For the protocol, we discussed that type of changes here.
client/blocks/signup-form/index.jsx
Outdated
{ ! config.isEnabled( 'desktop' ) && | ||
this.isHorizontal() && | ||
! this.userCreationComplete() && ( |
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.
This could be another opportunity for abstracting to a variable like you did above.
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.
Oh, I missed this one. Thanks for noticing. I pushed a commit that fixes it.
@@ -62,7 +62,7 @@ const Container = styled.div< { isSelected?: boolean; isClickDisabled?: boolean | |||
height: 170px; | |||
position: relative; | |||
cursor: ${ ( { isClickDisabled } ) => ( isClickDisabled ? 'default' : 'pointer' ) }; | |||
pointer-events: ${ ( { isClickDisabled } ) => ( isClickDisabled ? 'none' : 'default' ) }; ; |
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.
Nice find 😅
Updates the
wp-prettier
package to version 2.8.5 and reformats the codebase.Notable changes:
typeof props[ 'value' ]
now get parens for clarity:( typeof props )[ 'value' ]
satisfies
,in
andout
variance specifiers, ...I also manually fixed formatting of some JSX conditionals, as they looked rather unwieldy after breaking into lines.