Skip to content

Commit 7c7c0de

Browse files
committed
Pass block to header image
1 parent ccfa4e3 commit 7c7c0de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/block.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export const Block: React.FC<Block> = props => {
143143
)}
144144
{page_cover && (
145145
<img
146-
src={mapImageUrl(page_cover)}
146+
src={mapImageUrl(page_cover, block)}
147147
alt={getTextContent(blockValue.properties.title)}
148148
className="notion-page-cover"
149149
style={{

0 commit comments

Comments
 (0)