Added Explore page with Gab Trends partner data
• Added: - Explore page with Gab Trends partner data
This commit is contained in:
@@ -31,7 +31,7 @@ class TabBarItem extends PureComponent {
|
||||
// If user navigates to different page, ensure tab bar item
|
||||
// with this.props.to that is on location is set to active.
|
||||
if (this.props.location !== prevProps.location) {
|
||||
const isCurrent = this.props.to === this.props.location.pathname
|
||||
const isCurrent = this.props.to === this.props.location.pathname && !this.props.location.search
|
||||
|
||||
if (this.state.isCurrent !== isCurrent) {
|
||||
this.setState({ isCurrent })
|
||||
@@ -52,7 +52,7 @@ class TabBarItem extends PureComponent {
|
||||
|
||||
// Combine state, props, location to make absolutely
|
||||
// sure of active status.
|
||||
const active = isActive || to === location.pathname || isCurrent
|
||||
const active = isActive || (to === location.pathname && !location.search) || isCurrent
|
||||
|
||||
const containerClasses = CX({
|
||||
default: 1,
|
||||
|
||||
Reference in New Issue
Block a user