refactor: convert more files to typescript
This commit is contained in:
19 files changed
+93
-451
No files matched your search
@@ -41,8 +41,7 @@ import {
|
||||
} from "@/utils/date/time";
|
||||
|
||||
import { Card } from "@/components/card/card";
|
||||
import { EpisodeCard } from "@/components/card/episodeCard";
|
||||
import { CardScroller } from "@/components/cardScroller/cardScroller";
|
||||
import CardScroller from "@/components/cardScroller/cardScroller";
|
||||
|
||||
import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice";
|
||||
import "./series.scss";
|
||||
@@ -885,33 +884,6 @@ function SeriesTitlePage() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{nextUpEpisode.isSuccess && nextUpEpisode.data.TotalRecordCount > 0 && (
|
||||
<CardScroller title="Next Up" displayCards={4} disableDecoration>
|
||||
{nextUpEpisode.data.Items.map((episode) => {
|
||||
return (
|
||||
<EpisodeCard
|
||||
key={episode.Id}
|
||||
item={episode}
|
||||
cardTitle={`S${episode.ParentIndexNumber}:E${episode.IndexNumber} - ${episode.Name}`}
|
||||
cardCaption={episode.Overview}
|
||||
imageBlurhash={
|
||||
episode.ImageBlurHashes?.Primary[
|
||||
Object.keys(episode.ImageBlurHashes.Primary)[0]
|
||||
]
|
||||
}
|
||||
queryKey={[
|
||||
"item",
|
||||
id,
|
||||
`season ${currentSeason + 1}`,
|
||||
"episodes",
|
||||
]}
|
||||
userId={user?.Id}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
</CardScroller>
|
||||
)}
|
||||
|
||||
{seasons.isPending ? (
|
||||
<SeasonSelectorSkeleton />
|
||||
) : (
|
||||
|
||||
Reference in new issue
Block a user