adding some more logging

we knew this wasn't the issue lol
This commit is contained in:
Violet Caulfield
2024-11-30 10:14:50 -06:00
parent 533847920b
commit 9437e205e8
2 changed files with 7 additions and 3 deletions

View File

@@ -51,5 +51,9 @@ function base64toJpeg(encode: string) : string {
function convertFileToBase64(file: any): string {
console.debug("Converting file to base64", file)
return base64toJpeg(Buffer.from(file, 'binary').toString('base64'));
let encode = base64toJpeg(Buffer.from(file, 'binary').toString('base64'));
console.debug(encode);
return encode;
}

View File

@@ -1,12 +1,11 @@
import { ReactNode } from "react";
import type { CardProps as TamaguiCardProps } from "tamagui"
import { H3, Card as TamaguiCard, ZStack } from "tamagui";
import { H3, Image, Card as TamaguiCard, ZStack } from "tamagui";
import { LinearGradient } from "tamagui/linear-gradient";
import { useApiClientContext } from "../jellyfin-api-provider";
import { cardDimensions } from "./component.config";
import { useImage } from "../../api/queries/image";
import { Colors } from "../../enums/colors";
import { Image } from "react-native";
interface CardProps extends TamaguiCardProps {
artistName?: string;
@@ -53,6 +52,7 @@ export function Card(props: CardProps) {
{ isSuccess && data && (
<Image
alignSelf="center"
source={{
uri: data
}}