Use plain image tag instead of Next.js (#184)
This commit is contained in:
committed by
GitHub
parent
fa3813e580
commit
685b0920e5
@@ -2,8 +2,6 @@
|
||||
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import Image from 'next/image';
|
||||
|
||||
import { Image as ImageIcon } from 'lucide-react';
|
||||
import { useForm } from 'react-hook-form';
|
||||
|
||||
@@ -72,8 +70,9 @@ export function ImageUploader(
|
||||
return (
|
||||
<div className={'flex items-center space-x-4'}>
|
||||
<label className={'animate-in fade-in zoom-in-50 relative h-20 w-20'}>
|
||||
<Image
|
||||
fill
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
decoding="async"
|
||||
className={'h-20 w-20 rounded-full object-cover'}
|
||||
src={image}
|
||||
alt={''}
|
||||
|
||||
Reference in New Issue
Block a user