feat: actor page

This commit is contained in:
Fredrik Burmester
2024-08-23 07:51:36 +02:00
parent ec50a90a32
commit 20739e6e2c
9 changed files with 215 additions and 25 deletions

View File

@@ -17,7 +17,7 @@ import { Loader } from "../Loader";
import { Text } from "./Text";
interface HorizontalScrollProps
extends Omit<FlashListProps<BaseItemDto>, "renderItem" | "data"> {
extends Omit<FlashListProps<BaseItemDto>, "renderItem" | "data" | "style"> {
queryFn: ({
pageParam,
}: {

View File

@@ -45,6 +45,10 @@ export const TouchableItemRouter: React.FC<PropsWithChildren<Props>> = ({
router.push(`/artists/${item.Id}/page`);
return;
}
if (item.Type === "Person") {
router.push(`/actors/${item.Id}`);
return;
}
if (item.Type === "BoxSet") {
router.push(`/collections/${item.Id}`);