Remove hardcoded styling for FormAlertWrapper#9865
Merged
Conversation
stitesExpensify
requested changes
Jul 13, 2022
stitesExpensify
left a comment
Contributor
There was a problem hiding this comment.
@ctkochan22 what the heck is going on with this PR? 3800 commits and 60k lines of code changed with 34 participants? 😅
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
Author
|
YIKES. The base was set to |
stitesExpensify
approved these changes
Jul 13, 2022
| // and passes it a (bool) isOffline parameter. Child components can then use the isOffline variable to determine offline behavior. | ||
| const FormAlertWrapper = props => ( | ||
| <View style={[styles.mh5, styles.mb5, styles.flex1, styles.justifyContentEnd, ...props.containerStyles]}> | ||
| <View style={[props.containerStyles]}> |
Member
There was a problem hiding this comment.
shouldn't this be
<View style={props.containerStyles}>
or
<View style={[...props.containerStyles]}>
Author
There was a problem hiding this comment.
Yes. Good point.
It still works, but I'll make that small change in a follow up PR. Thanks man
95 tasks
Contributor
|
🚀 Deployed to production by @chiragsalian in version: 1.1.84-13 🚀
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@Expensify/pullerbear
Details
If we are using
FormAlertWrapperto wrap something, its probably something that already has its own styling. Lets not force any sort of styles on it.Lets move the styling to the
FormAlertWithSubmitButtonFixed Issues
$ #9838
Tests/QA
FormAlertWithSubmitButtoncomponentPR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)PR Reviewer Checklist
The Contributor+ will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)