mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
href of board row moved to view
This commit is contained in:
parent
7e73c4eb15
commit
f760eb847f
2 changed files with 5 additions and 5 deletions
|
|
@ -23,6 +23,7 @@ const Board = () => {
|
|||
null
|
||||
}
|
||||
{board.catalog_resources.map((catalog_resource, index) => {
|
||||
const href = `#/discover/${encodeURIComponent(catalog_resource.request.base)}/${encodeURIComponent(catalog_resource.request.path.type_name)}/${encodeURIComponent(catalog_resource.request.path.id)}`;
|
||||
const title = `${catalog_resource.origin} - ${catalog_resource.request.path.id} ${catalog_resource.request.path.type_name}`;
|
||||
switch (catalog_resource.content.type) {
|
||||
case 'Ready': {
|
||||
|
|
@ -33,7 +34,7 @@ const Board = () => {
|
|||
title={title}
|
||||
items={catalog_resource.content.content}
|
||||
itemComponent={MetaItem}
|
||||
href={catalog_resource.href}
|
||||
href={href}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
@ -45,7 +46,7 @@ const Board = () => {
|
|||
className={styles['board-row']}
|
||||
title={title}
|
||||
message={message}
|
||||
href={catalog_resource.href}
|
||||
href={href}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
@ -55,7 +56,7 @@ const Board = () => {
|
|||
key={index}
|
||||
className={styles['board-row']}
|
||||
title={title}
|
||||
href={catalog_resource.href}
|
||||
href={href}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,8 +33,7 @@ const mapBoardStateWithCtx = (board, ctx) => {
|
|||
|
||||
return origin;
|
||||
}, catalog_resource.request.base);
|
||||
const href = `#/discover/${encodeURIComponent(catalog_resource.request.base)}/${encodeURIComponent(catalog_resource.request.path.type_name)}/${encodeURIComponent(catalog_resource.request.path.id)}`;
|
||||
return { request, content, origin, href };
|
||||
return { request, content, origin };
|
||||
});
|
||||
return { selected, catalog_resources };
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue