dpage
This commit is contained in:
@@ -172,6 +172,7 @@ const BookPage = forwardRef<HTMLDivElement, BookPageProps>(
|
||||
}
|
||||
|
||||
case 'image':
|
||||
case 'sticker':
|
||||
return (
|
||||
<img
|
||||
key={obj.id || index}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user