Skip to content

Commit

Permalink
[React] Replaced deprecated 'media' Styleguide-Image property by 'fie…
Browse files Browse the repository at this point in the history
…ld' (#1785)

* Replaced deprecated _media_ styleguide image property by _field_

* Updated CHANGELOG
  • Loading branch information
illiakovalenko authored Apr 26, 2024
1 parent 21d10de commit 8f4deff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Our versioning strategy is as follows:
* `sitecore-jss-nextjs` no longer exports `isEditorActive`, `resetEditorChormes`, `resolveUrl`, `handleEditorFastRefresh`, `getPublicUrl` functions. Use `sitecore-jss-nextjs/utils` instead.
* `getFEAASLibraryStylesheetLinks` function has been removed in favor of `getComponentLibraryStylesheetLinks`

* `[sitecore-jss-react]` Deprecated `media` prop is removed from Image component. Use `field` prop instead ([#1780](https://github.com/Sitecore/jss/pull/1780)).
* `[sitecore-jss-react]` `[templates/react]` Deprecated `media` prop is removed from Image component. Use `field` prop instead ([#1780](https://github.com/Sitecore/jss/pull/1780))([#1785](https://github.com/Sitecore/jss/pull/1785)).

* `[templates/react]` `[templates/angular]` `[templates/vue]` `[templates/node-headless-ssr-experience-edge]` `[sitecore-jss-react]` `[sitecore-jss-nextjs]` ([#1783](https://github.com/Sitecore/jss/pull/1783)):
* GraphQL-based services can now only be initialized with clientFactory parameter. Previously deprecated option of providing endpoint and apiKey has been removed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import StyleguideSpecimen from '../styleguide/Styleguide-Specimen';
const StyleguideFieldUsageImage = (props) => (
<StyleguideSpecimen {...props} e2eId="styleguide-fieldusage-image">
<p>Plain image</p>
<Image media={props.fields.sample1} />
<Image field={props.fields.sample1} />

{/*
Advanced image usage example
Expand Down

0 comments on commit 8f4deff

Please sign in to comment.