This commit is contained in:
mgabdev
2020-05-01 01:50:27 -04:00
parent c15d4f12dc
commit 8e349c368c
99 changed files with 1268 additions and 887 deletions

View File

@@ -16,7 +16,7 @@ class PillItem extends PureComponent {
}
state = {
isCurrent: -1,
isCurrent: false,
}
componentDidUpdate(prevProps) {
@@ -43,8 +43,7 @@ class PillItem extends PureComponent {
// Combine state, props, location to make absolutely
// sure of active status.
const active = isActive ||
(isCurrent === -1 ? to === location.pathname : false)
const active = isActive || to === location.pathname || isCurrent
const containerClasses = CX({
default: 1,