Fix types

This commit is contained in:
Zoe Roux 2023-12-15 02:09:48 +01:00
parent e176664bb4
commit dd62f8f8ac
4 changed files with 9 additions and 3 deletions

View File

@ -56,6 +56,7 @@
"optionalDependencies": {
"blurhash": "^2.0.5",
"react-native-blurhash": "^1.1.11",
"react-native-fast-image": "^8.6.3"
"react-native-fast-image": "^8.6.3",
"react-native-safe-area-context": "4.6.3"
}
}

View File

@ -210,7 +210,9 @@ export const EpisodeLine = ({
watchedPercent: number | null;
watchedStatus: WatchStatusV | null;
href: string;
}>) => {
}> &
PressableProps &
Stylable) => {
const [moreOpened, setMoreOpened] = useState(false);
const { css } = useYoshiki("episode-line");
const { t } = useTranslation();

View File

@ -58,7 +58,7 @@ export const NewsList = () => {
<EpisodeBox
isLoading={x.isLoading as any}
slug={x.slug}
showSlug={x.showId}
showSlug={x.kind === NewsKind.Episode ? x.showId : null}
name={
x.kind === NewsKind.Episode
? `${x.show!.name} ${episodeDisplayNumber(x)}`

View File

@ -2886,6 +2886,7 @@ __metadata:
blurhash: ^2.0.5
react-native-blurhash: ^1.1.11
react-native-fast-image: ^8.6.3
react-native-safe-area-context: 4.6.3
solito: ^4.1.3
typescript: ^5.3.2
peerDependencies:
@ -2910,6 +2911,8 @@ __metadata:
optional: true
react-native-fast-image:
optional: true
react-native-safe-area-context:
optional: true
peerDependenciesMeta:
"@gorhom/portal":
optional: true