Skip to content

Commit 4bdd081

Browse files
committed
Vercel doesnt allow any type
1 parent 5d7458f commit 4bdd081

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/app/components/blog.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,14 @@ const BlogList: React.FC<BlogListProps> = ({ posts }) => {
8484
<ReactMarkdown
8585
rehypePlugins={[rehypeRaw]}
8686
components={{
87-
img: ({ src, alt, ...props }: any) => (
87+
img: (props) => (
8888
<Image
89-
src={src || ''}
90-
alt={alt || ''}
89+
src={props.src || ''}
90+
alt={props.alt || ''}
9191
className="rounded-lg max-w-full h-auto"
9292
width={600}
9393
height={400}
9494
loading="lazy"
95-
{...props}
9695
/>
9796
),
9897
}}

0 commit comments

Comments
 (0)