Skip to content

Commit 46d2b66

Browse files
fix: rendering normal img if images is a gif.
1 parent 65737c2 commit 46d2b66

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.idea/workspace.xml

Lines changed: 12 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/imagera.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default function Imagera({
1010
return (
1111
<div>
1212
<br/>
13-
{src.includes(".gif") ?
13+
{!src.includes(".gif") ?
1414
<Image className={"mt-4"} src={src} unoptimized={src.includes(".gif")} alt={alt} width={200}
1515
height={height}/> :
1616
<img className={"mt-4"} src={src} alt={alt} width={200} height={height}/>

0 commit comments

Comments
 (0)