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 { useCallback, useEffect, useState } from 'react';
|
||||||
|
|
||||||
import Image from 'next/image';
|
|
||||||
|
|
||||||
import { Image as ImageIcon } from 'lucide-react';
|
import { Image as ImageIcon } from 'lucide-react';
|
||||||
import { useForm } from 'react-hook-form';
|
import { useForm } from 'react-hook-form';
|
||||||
|
|
||||||
@@ -72,8 +70,9 @@ export function ImageUploader(
|
|||||||
return (
|
return (
|
||||||
<div className={'flex items-center space-x-4'}>
|
<div className={'flex items-center space-x-4'}>
|
||||||
<label className={'animate-in fade-in zoom-in-50 relative h-20 w-20'}>
|
<label className={'animate-in fade-in zoom-in-50 relative h-20 w-20'}>
|
||||||
<Image
|
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||||
fill
|
<img
|
||||||
|
decoding="async"
|
||||||
className={'h-20 w-20 rounded-full object-cover'}
|
className={'h-20 w-20 rounded-full object-cover'}
|
||||||
src={image}
|
src={image}
|
||||||
alt={''}
|
alt={''}
|
||||||
|
|||||||
Reference in New Issue
Block a user