fix: image via props and remove songIllustration function for cover property

This commit is contained in:
GitBluub
2023-05-30 15:33:54 +09:00
committed by Clément Le Bihan
parent 25e3d99e22
commit 2434d5f5df
6 changed files with 9 additions and 16 deletions
+3 -3
View File
@@ -5,14 +5,14 @@ import { useTheme } from "native-base";
import { Ionicons } from "@expo/vector-icons";
import API from "../API";
type GenreCardProps = {
icon: string;
image: string;
name: string;
id: number;
onPress: () => void;
};
const GenreCard = (props: GenreCardProps) => {
const { icon, name, id } = props;
const { image, name, id } = props;
const theme = useTheme();
return (
@@ -29,7 +29,7 @@ const GenreCard = (props: GenreCardProps) => {
>
<Image
source={{
uri: API.getGenreIllustration(id),
uri: image,
}}
size="md"
/>