diff --git a/front/packages/ui/src/details/episode.tsx b/front/packages/ui/src/details/episode.tsx index bd9abbd8..d516f8ec 100644 --- a/front/packages/ui/src/details/episode.tsx +++ b/front/packages/ui/src/details/episode.tsx @@ -62,6 +62,10 @@ export const displayRuntime = (runtime: number) => { return `${Math.floor(runtime / 60)}h${runtime % 60}`; }; +export const displayAirDate = (airDate: Date) => { + return airDate.toLocaleDateString("en-US"); +}; + export const EpisodeBox = ({ slug, showSlug, @@ -248,9 +252,6 @@ export const EpisodeLine = ({ props, )} > -

- {isLoading ? : displayNumber} -

{isLoading || (
- {name ?? t("show.episodeNoMetadata")} + {[displayNumber, name ?? t("show.episodeNoMetadata")].join(" · ")}
)} @@ -306,7 +307,13 @@ export const EpisodeLine = ({ {isLoading || (runtime && ( - {isLoading || {displayRuntime(runtime)}} + {isLoading || ( + + {[releaseDate ? displayAirDate(releaseDate) : null, displayRuntime(runtime)] + .filter((item) => item != null) + .join(" · ")} + + )} ))}