Skip to content

Commit

Permalink
extract publicationview from props spreading
Browse files Browse the repository at this point in the history
  • Loading branch information
panaC committed Oct 10, 2023
1 parent 11cd9ee commit a792a6b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/renderer/common/components/Cover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,17 @@ class Cover extends React.Component<IProps, IState> {

export default withTranslator(Cover);

export const CoverWithForwardedRef = React.forwardRef<HTMLImageElement, IProps>((props, forwardedRef) => {
export const CoverWithForwardedRef = React.forwardRef<HTMLImageElement, IProps>(({publicationViewMaybeOpds, ...props}, forwardedRef) => {
const [__] = useTranslator();

return (
<Cover
// forwardedRef={forwardedRef}
publicationViewMaybeOpds={props.publicationViewMaybeOpds}
publicationViewMaybeOpds={publicationViewMaybeOpds}
coverType="cover"
__={__}
forwardedRef={forwardedRef}
imgRadixProp={props}
/>
);
})

});

0 comments on commit a792a6b

Please sign in to comment.