-
Notifications
You must be signed in to change notification settings - Fork 975
Refactors Navigator and BrowserAction into redux components #8658
Conversation
f31e097
to
16cf8db
Compare
note: tests are still WIP, but other can be reviewed |
unit tests fixed 🎉 |
if (activeTab && activeTab.get(navCheckProp)) { | ||
appActions.tabCloned(activeTabId, { | ||
if (e && eventUtil.isForSecondaryAction(e) && this.props.isNavigable) { | ||
if (this.props.get(navCheckProp)) { |
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.
shouldn't this be this.props[navCheckProp]
? Is there a test that covers this because I think this would cause an exception
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.
You are correct. Fixed.
@@ -25,7 +25,10 @@ class ReduxComponent extends ImmutableComponent { | |||
} | |||
|
|||
checkForUpdates () { | |||
if (!this.dontCheck && this.shouldComponentUpdate(this.props, this.buildProps())) { | |||
// TODO @bridiver only temp solution |
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.
shouldn't this be @NejcZdovc
instead of @bridiver
?
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.
removed, so its fine 😄
31334fe
to
825ce57
Compare
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 ++
I have one more failing unit test that I just added. Don't merge yet |
Resovles brave#8651 Auditors: @bsclifton @bridiver Test Plan: - test if navigation buttons are working correctly - test if extension icon are displayed correctly and text is working for them
Unit test fixed, thanks @bsclifton. Let's wait for travis and then merge it |
git rebase -i
to squash commits (if needed).Resolves #8651
Auditors: @bsclifton @bridiver
Test Plan: