This commit is contained in:
Fredrik Burmester
2024-08-19 22:52:27 +02:00
parent c23ca905c8
commit 4c097c557f
2 changed files with 39 additions and 5 deletions

View File

@@ -10,11 +10,13 @@ import Poster from "../posters/Poster";
import { useAtom } from "jotai";
import { apiAtom } from "@/providers/JellyfinProvider";
import { getPrimaryImageUrl } from "@/utils/jellyfin/image/getPrimaryImageUrl";
import { router } from "expo-router";
import { router, usePathname } from "expo-router";
export const CastAndCrew = ({ item }: { item: BaseItemDto }) => {
const [api] = useAtom(apiAtom);
const pathname = usePathname();
return (
<View>
<Text className="text-lg font-bold mb-2 px-4">Cast & Crew</Text>
@@ -23,7 +25,7 @@ export const CastAndCrew = ({ item }: { item: BaseItemDto }) => {
renderItem={(item, index) => (
<TouchableOpacity
onPress={() => {
// TODO: Navigate to person
router.push(`/search?q=${item.Name}&prev=${pathname}`);
}}
key={item.Id}
className="flex flex-col w-32"