Use plain image tag instead of Next.js (#184)

This commit is contained in:
Giancarlo Buomprisco
2025-02-21 09:01:15 +07:00
committed by GitHub
parent fa3813e580
commit 685b0920e5

View File

@@ -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={''}