This commit is contained in:
hamid zarghami
2026-05-21 12:21:44 +03:30
parent 4390937b19
commit b6bff9956a
11 changed files with 187 additions and 11 deletions
+1
View File
@@ -172,6 +172,7 @@ const BookPage = forwardRef<HTMLDivElement, BookPageProps>(
}
case 'image':
case 'sticker':
return (
<img
key={obj.id || index}
+1 -1
View File
@@ -121,7 +121,7 @@ export function transformViewerDataToPages(data: ViewerData): PageData[] {
baseObject.borderRadius = obj.borderRadius;
}
if (obj.type === "image" && obj.imageUrl) {
if ((obj.type === "image" || obj.type === "sticker") && obj.imageUrl) {
baseObject.imageUrl = obj.imageUrl;
}