Skip to content

Commit

Permalink
[MemeBattle#402] Blog: fix yarn run dev
Browse files Browse the repository at this point in the history
  • Loading branch information
margo-yunanova committed Aug 24, 2023
1 parent 83523b3 commit ebcfc51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/blog/src/components/Mdx/Mdx.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Image from 'next/image'
import type { ImageProps } from 'next/image'
import NextImage from 'next/image'
import { useMDXComponent } from 'next-contentlayer/hooks'
import InstagramPost from '../InstagramPost'

Expand All @@ -11,7 +12,7 @@ export function Mdx({ code }: MdxProps) {

return (
<article className="prose lg:prose-xl">
<Component components={{ Image, InstagramPost }} />
<Component components={{ Image: (props: ImageProps) => <NextImage {...props} />, InstagramPost }} />
</article>
)
}

0 comments on commit ebcfc51

Please sign in to comment.