redirect to full continuewatching list from board

This commit is contained in:
nklhrstv 2020-03-28 14:48:31 +02:00
parent 8200d58e8d
commit a0367c8b66
2 changed files with 3 additions and 1 deletions

View file

@ -17,6 +17,7 @@ const Board = () => {
title={'Continue Watching'}
items={continueWatchingPreview.lib_items}
itemComponent={LibItem}
href={continueWatchingPreview.href}
/>
:
null

View file

@ -16,7 +16,8 @@ const mapContinueWatchingPreviewState = (continue_watching_preview) => {
null,
href: `#/metadetails/${encodeURIComponent(lib_item.type)}/${encodeURIComponent(lib_item._id)}${lib_item.state.video_id !== null ? `/${encodeURIComponent(lib_item.state.video_id)}` : ''}`
}));
return { lib_items };
const href = '#/continuewatching';
return { lib_items, href };
};
const useContinueWatchingPreview = () => {