refactor: move more files to typescript

This commit is contained in:
Prayag Prajapati committed 2024-12-03 22:21:48 +05:30
1 parent 97526e29b4
commit cf8c5d4490
20 files changed
+123 -177

No files matched your search

+33 -30
View File
@@ -419,38 +419,41 @@ function EpisodeTitlePage() {
)}
</div>
<div className="item-hero-detail">
<TextLink
otherProps={{
fontWeight: 200,
mb: 2,
style: {
textDecoration: "none",
},
<Typography
variant="h2"
fontWeight="200"
mb={2}
style={{
textDecoration: "none",
}}
variant={"h2"}
location={`/series/${item.data.SeriesId}`}
>
{item.data.ParentLogoItemId?.length > 0 ? (
<img
alt={item.data.SeriesName}
src={getImageUrlsApi(api).getItemImageUrlById(
item.data.ParentLogoItemId,
"Logo",
{
quality: 90,
fillWidth: 592,
fillHeight: 592,
},
)}
onLoad={(e) => {
e.currentTarget.style.opacity = 1;
}}
className="item-hero-logo"
/>
) : (
item.data.SeriesName
)}
</TextLink>
<Link
style={{ textDecoration: "none", color: "white" }}
to="/series/$id"
params={{ id: item.data.SeriesId ?? "" }}
>
{item.data.ParentLogoItemId?.length > 0 ? (
<img
alt={item.data.SeriesName}
src={getImageUrlsApi(api).getItemImageUrlById(
item.data.ParentLogoItemId,
"Logo",
{
quality: 90,
fillWidth: 592,
fillHeight: 592,
},
)}
onLoad={(e) => {
e.currentTarget.style.opacity = 1;
}}
className="item-hero-logo"
/>
) : (
item.data.SeriesName
)}
</Link>
</Typography>
<Typography variant="h4" fontWeight={300} mb={2}>
S{item.data.ParentIndexNumber ?? 0}:E
{item.data.IndexNumberEnd