mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
support animated artist images
This commit is contained in:
@@ -18,10 +18,14 @@ const BaseItemImage = (
|
||||
src?: null | string;
|
||||
},
|
||||
) => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const { src, ...rest } = props;
|
||||
|
||||
const imageUrl = useItemImageUrl({ id: props.id, itemType: props.itemType, size: 300 });
|
||||
const imageUrl = useItemImageUrl({
|
||||
id: props.id,
|
||||
imageUrl: src,
|
||||
itemType: props.itemType,
|
||||
size: 300,
|
||||
});
|
||||
|
||||
return <BaseImage src={imageUrl} {...rest} />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user