Skip to content

Commit

Permalink
[Nextjs] Remove not used field width/height properties (#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
illiakovalenko authored Feb 15, 2023
1 parent bb6bac1 commit 042642b
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import {
NextImage,
ImageField,
withDatasourceCheck,
getFieldValue,
} from '@sitecore-jss/sitecore-jss-nextjs';
import { NextImage, ImageField, withDatasourceCheck } from '@sitecore-jss/sitecore-jss-nextjs';
import StyleguideSpecimen from 'components/styleguide/Styleguide-Specimen';
import { ComponentProps } from 'lib/component-props';
import { StyleguideSpecimenFields } from 'lib/component-props/styleguide';
Expand Down Expand Up @@ -59,8 +54,8 @@ const StyleguideFieldUsageImage = (props: StyleguideFieldUsageImageProps): JSX.E
<div
style={{
position: 'relative',
height: +getFieldValue(props.fields, 'sample2').height || 160,
width: +getFieldValue(props.fields, 'sample2').width || 300,
height: 160,
width: 300,
}}
>
<NextImage
Expand Down

0 comments on commit 042642b

Please sign in to comment.