Skip to content

Commit

Permalink
Merge pull request #290 from Pespiri/main
Browse files Browse the repository at this point in the history
fix: fix styled components prop pollution in image renderer
  • Loading branch information
cyntler authored Oct 15, 2024
2 parents 9a970d6 + 5bd551a commit c6ded83
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/renderers/image/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ import React from "react";
import styled from "styled-components";
import { DocRenderer } from "../..";

const ImageProxyRenderer: DocRenderer = (props) => {
const {
mainState: { currentDocument },
children,
} = props;

const ImageProxyRenderer: DocRenderer = ({
mainState: { currentDocument },
children,
...props
}) => {
if (!currentDocument) return null;

return (
Expand Down

0 comments on commit c6ded83

Please sign in to comment.