Skip to content

Commit

Permalink
Updated media component props
Browse files Browse the repository at this point in the history
  • Loading branch information
ncoetzer committed Oct 6, 2023
1 parent f006e22 commit 4db07f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/image/child-components/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { __ } from '@wordpress/i18n';
export const ImageContext = createContext();

export const Media = (props) => {
const { style } = props;
const { style, ...rest } = props;
const {
imageUrl,
altText,
Expand Down Expand Up @@ -56,8 +56,8 @@ export const Media = (props) => {
<img
src={imageUrl}
alt={altText}
style={{ ...style, focalPointStyle }}
{...props}
style={{ ...style, ...focalPointStyle }}
{...rest}
/>
)}
{canEditImage && (
Expand Down

0 comments on commit 4db07f2

Please sign in to comment.