From d9f7844c5af342e1faa35201ee0a4983178bfdbc Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Fri, 29 Nov 2024 09:29:42 -0600 Subject: [PATCH] getting art image to render card changes --- components/Global/card.tsx | 20 ++++++++------------ components/Global/component.config.ts | 2 +- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/components/Global/card.tsx b/components/Global/card.tsx index 0e7aadf9..0fb1072f 100644 --- a/components/Global/card.tsx +++ b/components/Global/card.tsx @@ -14,8 +14,7 @@ interface CardProps extends TamaguiCardProps { export function Card(props: CardProps) { - const { apiClient } = useApiClientContext(); - const { data, isPending } = useItemImage(apiClient!, props.itemId, ImageType.Primary, cardDimensions.width) + const { server } = useApiClientContext(); return ( - { data && ( - - - )} + ) diff --git a/components/Global/component.config.ts b/components/Global/component.config.ts index 1fd4146b..01718114 100644 --- a/components/Global/component.config.ts +++ b/components/Global/component.config.ts @@ -1,4 +1,4 @@ export const cardDimensions = { - width: 300, + width: 250, height: 300 } \ No newline at end of file