mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-04-07 01:31:56 -04:00
Properly display unavailable box-entries
This commit is contained in:
parent
c8c23a8f65
commit
a9e054ee54
@ -36,7 +36,7 @@ export const EntryBox = ({
|
||||
serieSlug: string | null;
|
||||
name: string | null;
|
||||
description: string | null;
|
||||
href: string;
|
||||
href: string | null;
|
||||
thumbnail: KImage | null;
|
||||
watchedPercent: number;
|
||||
videos: Entry["videos"];
|
||||
@ -51,7 +51,11 @@ export const EntryBox = ({
|
||||
href={moreOpened || videos.length > 1 ? undefined : href}
|
||||
onPress={videos.length > 1 ? onSelectVideos : undefined}
|
||||
onLongPress={() => setMoreOpened(true)}
|
||||
className={cn("group w-[350px] items-center p-1 outline-0", className)}
|
||||
className={cn(
|
||||
"group w-[350px] items-center p-1 outline-0",
|
||||
href === null && "opacity-50",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
>
|
||||
<ThumbnailBackground
|
||||
|
||||
@ -56,13 +56,6 @@ export const EntryContext = ({
|
||||
{...tooltip(t("misc.more"))}
|
||||
{...(props as any)}
|
||||
>
|
||||
{account && (
|
||||
<Menu.Item
|
||||
label={t("show.watchlistMark.completed")}
|
||||
icon={watchListIcon("completed")}
|
||||
onSelect={() => markAsSeenMutation.mutate()}
|
||||
/>
|
||||
)}
|
||||
{serieSlug && (
|
||||
<Menu.Item
|
||||
label={t("home.episodeMore.goToShow")}
|
||||
@ -70,6 +63,13 @@ export const EntryContext = ({
|
||||
href={`/${kind === "movie" ? "movies" : "series"}/${serieSlug}`}
|
||||
/>
|
||||
)}
|
||||
{account && (
|
||||
<Menu.Item
|
||||
label={t("show.watchlistMark.completed")}
|
||||
icon={watchListIcon("completed")}
|
||||
onSelect={() => markAsSeenMutation.mutate()}
|
||||
/>
|
||||
)}
|
||||
{/* <Menu.Item */}
|
||||
{/* label={t("home.episodeMore.download")} */}
|
||||
{/* icon={Download} */}
|
||||
|
||||
@ -45,7 +45,7 @@ export const NewsList = () => {
|
||||
name={`${item.show!.name} ${entryDisplayNumber(item)}`}
|
||||
description={item.name}
|
||||
thumbnail={item.thumbnail ?? item.show!.thumbnail}
|
||||
href={item.href ?? "#"}
|
||||
href={item.href}
|
||||
watchedPercent={item.progress.percent}
|
||||
videos={item.videos}
|
||||
onSelectVideos={() =>
|
||||
|
||||
@ -66,7 +66,7 @@ export const NextupList = () => {
|
||||
name={`${item.show!.name} ${entryDisplayNumber(item)}`}
|
||||
description={item.name}
|
||||
thumbnail={item.thumbnail ?? item.show!.thumbnail}
|
||||
href={item.href ?? "#"}
|
||||
href={item.href}
|
||||
watchedPercent={item.progress.percent}
|
||||
videos={item.videos}
|
||||
onSelectVideos={() =>
|
||||
|
||||
@ -103,7 +103,7 @@ const ProfileHeader = ({
|
||||
}
|
||||
description={item.name}
|
||||
thumbnail={item.thumbnail ?? item.show?.thumbnail ?? null}
|
||||
href={item.href ?? "#"}
|
||||
href={item.href}
|
||||
watchedPercent={item.progress.percent}
|
||||
videos={item.videos}
|
||||
onSelectVideos={() => {}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user