Skip to content

Commit

Permalink
Fix: src\components\common\Picture 컴포넌트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryusoo-h committed Sep 9, 2023
1 parent cf83ffd commit 017d3c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/common/Picture.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const PictureEl = styled.picture`
const Picture = ({ className, imgUrl, imgAlt, avifUrl, webpUrl }: Props) => {
return (
<PictureEl className={className}>
<source srcSet={avifUrl} type="image/avif" />
<source srcSet={webpUrl} type="image/webp" />
{avifUrl && <source srcSet={avifUrl} type="image/avif" />}
{webpUrl && <source srcSet={webpUrl} type="image/webp" />}
<img src={imgUrl} alt={imgAlt} />
</PictureEl>
);
Expand Down

0 comments on commit 017d3c6

Please sign in to comment.