diff --git a/frontend/src/docs/MigrationImageBehaviour.tsx b/frontend/src/docs/MigrationImageBehaviour.tsx index e0d726565..661d58d00 100644 --- a/frontend/src/docs/MigrationImageBehaviour.tsx +++ b/frontend/src/docs/MigrationImageBehaviour.tsx @@ -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 }) { @@ -18,7 +18,7 @@ function ResponsiveImage({ src, width = 1, height = 1, scaling = 50, alt }) { paddingBottom: `max(350px, ${(width / height) * scaling}%)`, }} > - {alt} + {alt} ) }