Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
KW86022 authored and KW86022 committed Oct 27, 2024
1 parent e45633f commit 8e4875a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/docs/MigrationImageBehaviour.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import Image from 'next/image'

function imageLoader() {
return undefined
export function imageLoader({ src }: { src: string }) {
return src
}

function ResponsiveImage({ src, width = 1, height = 1, scaling = 50, alt }) {
Expand All @@ -18,7 +18,7 @@ function ResponsiveImage({ src, width = 1, height = 1, scaling = 50, alt }) {
paddingBottom: `max(350px, ${(width / height) * scaling}%)`,
}}
>
<Image loader={imageLoader()} className='next-image' src={src} layout='fill' objectFit='contain' alt={alt} />
<Image loader={imageLoader} className='next-image' src={src} layout='fill' objectFit='contain' alt={alt} />
</div>
)
}
Expand Down

0 comments on commit 8e4875a

Please sign in to comment.