Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Tishasoumya-02 committed Jul 3, 2024
1 parent 214b238 commit 605e6ba
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions packages/volto/src/components/manage/Blocks/Teaser/DefaultBody.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,28 +51,23 @@ const TeaserDefaultTemplate = (props) => {
}
>
<div className="teaser-item default">
{
// eslint-disable-next-line
url != undefined && !isInternalURL(url) ? (
{url && !isInternalURL(url) ? (
<div className="image-wrapper">
<Image src={url} alt="" loading="lazy" responsive={true} />
</div>
) : (
(href.hasPreviewImage || href.image_field || image) && (
<div className="image-wrapper">
<Image src={url} alt="" loading="lazy" responsive={true} />
<Image
item={image || href}
imageField={image ? image.image_field : href.image_field}
alt=""
loading="lazy"
responsive={true}
/>
</div>
) : (
(href.hasPreviewImage || href.image_field || image) && (
<div className="image-wrapper">
<Image
item={image || href}
imageField={
image ? image.image_field : href.image_field
}
alt=""
loading="lazy"
responsive={true}
/>
</div>
)
)
}
)}
<div className="content">
{data?.head_title && (
<div className="headline">{data.head_title}</div>
Expand Down

0 comments on commit 605e6ba

Please sign in to comment.