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": { "optionalDependencies": {
"blurhash": "^2.0.5", "blurhash": "^2.0.5",
"react-native-blurhash": "^1.1.11", "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; watchedPercent: number | null;
watchedStatus: WatchStatusV | null; watchedStatus: WatchStatusV | null;
href: string; href: string;
}>) => { }> &
PressableProps &
Stylable) => {
const [moreOpened, setMoreOpened] = useState(false); const [moreOpened, setMoreOpened] = useState(false);
const { css } = useYoshiki("episode-line"); const { css } = useYoshiki("episode-line");
const { t } = useTranslation(); const { t } = useTranslation();

View File

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

View File

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