href removed from ContinueWatchingPreview hook

This commit is contained in:
nklhrstv 2020-03-28 18:54:43 +02:00
parent f760eb847f
commit 999a649f5c
2 changed files with 2 additions and 3 deletions

View file

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

View file

@ -16,8 +16,7 @@ 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)}` : ''}`
}));
const href = '#/continuewatching';
return { lib_items, href };
return { lib_items };
};
const useContinueWatchingPreview = () => {