Skip to content

Commit c6ded83

Browse files
authored
Merge pull request #290 from Pespiri/main
fix: fix styled components prop pollution in image renderer
2 parents 9a970d6 + 5bd551a commit c6ded83

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/renderers/image/index.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ import React from "react";
22
import styled from "styled-components";
33
import { DocRenderer } from "../..";
44

5-
const ImageProxyRenderer: DocRenderer = (props) => {
6-
const {
7-
mainState: { currentDocument },
8-
children,
9-
} = props;
10-
5+
const ImageProxyRenderer: DocRenderer = ({
6+
mainState: { currentDocument },
7+
children,
8+
...props
9+
}) => {
1110
if (!currentDocument) return null;
1211

1312
return (

0 commit comments

Comments
 (0)