mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-20 00:12:53 -05:00
adding some more logging
we knew this wasn't the issue lol
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user