Skip to content

Commit 26d67b6

Browse files
committed
fix: require alt prop for images
1 parent 66822eb commit 26d67b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import NextImage, { ImageProps } from 'next/image'
22
import React from 'react'
33

44
export type NextImageFromFileProps = Partial<ImageProps> &
5-
Pick<ImageProps, 'src'>
5+
Pick<ImageProps, 'src' | 'alt'>
66

77
export default function NextImageFromFile(props: NextImageFromFileProps) {
88
const [image, setImage] = React.useState<null | {

0 commit comments

Comments
 (0)