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 {isLoading ||
{...css({ (studio && (
color: (theme: Theme) => theme.user.paragraph, <P
display: "flex", {...css({
})} color: (theme: Theme) => theme.user.paragraph,
> display: "flex",
{t("show.studio")}:{" "} })}
{isLoading ? ( >
<Skeleton {...css({ width: rem(5) })} /> {t("show.studio")}:{" "}
) : ( {isLoading ? (
<A href={`/studio/${studio!.slug}`} {...css({ color: (theme) => theme.user.link })}> <Skeleton {...css({ width: rem(5) })} />
{studio!.name} ) : (
</A> <A href={`/studio/${studio.slug}`} {...css({ color: (theme) => theme.user.link })}>
)} {studio.name}
</P> </A>
)}
</P>
))}
</View> </View>
</Container> </Container>
); );