Added Explore page with Gab Trends partner data

• Added:
- Explore page with Gab Trends partner data
This commit is contained in:
mgabdev
2020-07-01 22:39:43 -04:00
parent 96ee203a54
commit f3b57b5810
15 changed files with 342 additions and 41 deletions

View File

@@ -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,