Skip to content

Commit

Permalink
fix: require alt prop for images
Browse files Browse the repository at this point in the history
  • Loading branch information
mismosmi committed Sep 22, 2023
1 parent 66822eb commit 26d67b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import NextImage, { ImageProps } from 'next/image'
import React from 'react'

export type NextImageFromFileProps = Partial<ImageProps> &
Pick<ImageProps, 'src'>
Pick<ImageProps, 'src' | 'alt'>

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

0 comments on commit 26d67b6

Please # to comment.