UPDATE/REFACTOR: Change how VODs are accessed & loaded;
FIX: `isLive` -> `streamerIsLive`; FIX: `Sidebar` profile pictures;
This commit is contained in:
@@ -151,7 +151,7 @@ const VodListItem: React.FC<VodListItemProps> = ({
|
||||
<div className="flex justify-evenly items-stretch rounded-b-lg">
|
||||
<a
|
||||
className="flex justify-around w-full h-full bg-black/50 hover:bg-black/80 p-2 mx-1 font-semibold rounded-full border border-transparent hover:border-white"
|
||||
href={`/vods/${username}/${vod_id}.mp4`}
|
||||
href={`/vod/${username}/${vod_id}.mp4`}
|
||||
download={`${username}_vod_${vod_id}.mp4`}
|
||||
>
|
||||
<DownloadIcon />
|
||||
|
||||
@@ -17,7 +17,7 @@ interface ListRowProps {
|
||||
description?: string;
|
||||
items: ItemType[];
|
||||
wrap?: boolean;
|
||||
onItemClick: (itemName: string) => void;
|
||||
onItemClick: (itemName: string, username?: string) => void;
|
||||
titleClickable?: boolean;
|
||||
extraClasses?: string;
|
||||
itemExtraClasses?: string;
|
||||
@@ -185,8 +185,8 @@ const ListRow = forwardRef<ListRowRef, ListRowProps>((props, ref) => {
|
||||
category_name={item.category_name}
|
||||
length={item.length}
|
||||
views={item.views}
|
||||
thumbnail={item.thumbnail}
|
||||
onItemClick={() => handleVodClick(item)}
|
||||
thumbnail={`/vods/${item.username}/${item.vod_id}.png`}
|
||||
onItemClick={() => onItemClick(item.username, item.vod_id.toString())}
|
||||
extraClasses={itemExtraClasses}
|
||||
variant={variant}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user