Fix studio error in the movie header

This commit is contained in:
Zoe Roux 2023-03-11 19:59:38 +09:00
parent 91aa673dcb
commit e32c09f48f

View File

@ -190,21 +190,24 @@ const TitleLine = ({
}),
])}
>
<P
{...css({
color: (theme: Theme) => theme.user.paragraph,
display: "flex",
})}
>
{t("show.studio")}:{" "}
{isLoading ? (
<Skeleton {...css({ width: rem(5) })} />
) : (
<A href={`/studio/${studio!.slug}`} {...css({ color: (theme) => theme.user.link })}>
{studio!.name}
</A>
)}
</P>
{isLoading ||
(studio && (
<P
{...css({
color: (theme: Theme) => theme.user.paragraph,
display: "flex",
})}
>
{t("show.studio")}:{" "}
{isLoading ? (
<Skeleton {...css({ width: rem(5) })} />
) : (
<A href={`/studio/${studio.slug}`} {...css({ color: (theme) => theme.user.link })}>
{studio.name}
</A>
)}
</P>
))}
</View>
</Container>
);