add user_history page

This commit is contained in:
Travis Eden 2018-07-31 15:45:58 -04:00 committed by Sean Yesmunt
parent c50c2c0f83
commit 64623ad30a
2 changed files with 12 additions and 2 deletions

6
dist/bundle.js vendored
View file

@ -3369,7 +3369,7 @@ var selectNavLinks = exports.selectNavLinks = (0, _reselect.createSelector)(sele
}; };
var isMyLbryPage = function isMyLbryPage(page) { var isMyLbryPage = function isMyLbryPage(page) {
return page === 'downloaded' || page === 'published'; return page === 'downloaded' || page === 'published' || page === 'user_history';
}; };
var previousStack = historyStack.slice().reverse(); var previousStack = historyStack.slice().reverse();
@ -3442,6 +3442,10 @@ var selectNavLinks = exports.selectNavLinks = (0, _reselect.createSelector)(sele
label: 'Publishes', label: 'Publishes',
path: '/published', path: '/published',
active: currentPage === 'published' active: currentPage === 'published'
}, {
label: 'History',
path: '/user_history',
active: currentPage === 'user_history'
}]; }];
var navLinks = { var navLinks = {

View file

@ -62,7 +62,8 @@ export const selectNavLinks = createSelector(
page === 'invite' || page === 'invite' ||
page === 'backup'; page === 'backup';
const isMyLbryPage = page => page === 'downloaded' || page === 'published'; const isMyLbryPage = page =>
page === 'downloaded' || page === 'published' || page === 'user_history';
const previousStack = historyStack.slice().reverse(); const previousStack = historyStack.slice().reverse();
@ -145,6 +146,11 @@ export const selectNavLinks = createSelector(
path: '/published', path: '/published',
active: currentPage === 'published', active: currentPage === 'published',
}, },
{
label: 'History',
path: '/user_history',
active: currentPage === 'user_history',
},
]; ];
const navLinks = { const navLinks = {