-
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
Help: Rethink the way we render the HelpContactForm #1116
Conversation
cc @dmsnell |
} | ||
|
||
return this.getKayakoTicketForm(); | ||
// Hide the olark widget in the bottom right corner. | ||
olarkActions.hideBox(); |
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 is just a DOM manipulation for a global element, right? Just checking that we aren't attempting to change the component's state mid-render.
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 is just a DOM manipulation for a global element, right? Just checking that we aren't attempting to change the component's state mid-render.
Thats correct.
Looks good @omarjackman. The gains here aren't as big as I had hoped. On the other hand, I can see how the early-return logic in |
4ba4e8a
to
c808a47
Compare
…lized rather than duplicating its use in multiple functions.
c808a47
to
fc09183
Compare
@dmsnell I did a rebase which caused the logic here to get a bit more complicated. Take a look at the new changes. |
bf6ad59
to
59ca9df
Compare
Looks fine. Go for it! |
…operties so that we can avoid duplication. We'll now use a single object to hold the properties for the different variations of the help contact form.
59ca9df
to
73cd30c
Compare
Help: Rethink the way we render the HelpContactForm
As previously discussed with @dmsnell I modified the logic that sets up the rendering for the
HelpContactForm
. Instead of using multiple functions that returnHelpContactForm
react classes I now have a single point where the React class is used and I'm using functions to provide the appropriate properties