modified: files to ios26 ui/ux
This commit is contained in:
@@ -29,7 +29,7 @@ export function mapApiPersonToUI(data: any) {
|
||||
export function mapApiSeasonToUI(data: any) {
|
||||
return {
|
||||
seasonId: data?.seasonId ?? data?.id,
|
||||
showId: data?.showId,
|
||||
showId: data?.showId ?? data?.show,
|
||||
startDate: data?.startDate ?? null,
|
||||
endDate: data?.endDate ?? null,
|
||||
seasonNumber: data?.seasonNumber ?? null,
|
||||
@@ -40,12 +40,20 @@ export function mapApiSeasonToUI(data: any) {
|
||||
}
|
||||
|
||||
export function mapApiShowToUI(data: any) {
|
||||
const id = data?.showId ?? data?.id;
|
||||
const genre = data?.genre ?? "";
|
||||
return {
|
||||
showId: data?.showId ?? data?.id,
|
||||
title: data?.title ?? data?.name ?? `Show #${data?.showId ?? data?.id ?? "?"}`,
|
||||
id,
|
||||
showId: id,
|
||||
title: data?.title ?? data?.name ?? `Show #${id ?? "?"}`,
|
||||
description: data?.description ?? "",
|
||||
genre: data?.genre ?? "",
|
||||
thumbnailUrl: data?.thumbnailUrl ?? data?.imageUrl ?? "",
|
||||
genres: genre ? genre.split(",").map((g: string) => g.trim()) : [],
|
||||
genre,
|
||||
thumbnailUri: data?.thumbnailUrl ?? data?.imageUrl ?? "",
|
||||
bannerUri: data?.bannerUrl ?? "",
|
||||
streamingService: data?.streamingServices ?? "",
|
||||
concept: data?.concept ?? "",
|
||||
running: data?.running ?? false,
|
||||
logoUrl: data?.logoUrl ?? "",
|
||||
} as any;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user