Update delete_image.tsx

This commit is contained in:
qwertyforce 2021-01-23 15:50:53 +03:00
parent 1da0e99672
commit 72964fa199

View File

@ -16,8 +16,10 @@ const useStyles = makeStyles(() => ({
},
}));
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export default function deleteImage(props: any) {
interface DeleteImageProps{
err:boolean
}
export default function deleteImage(props: DeleteImageProps) {
if (props.err) {
return <ErrorPage statusCode={404} />
}