1nwf / Produx-v2

Avoid using the <img> tag JS-W1015
Anti-pattern
Minor
8 months ago8 months old
Do not use <img> element. Use <Image /> from next/image instead. See: https://nextjs.org/docs/messages/no-img-element
102            <div className="block lg:flex">
103              {userInfo.pfp && (
104                <div className="relative hover:cursor-pointer">
105                  <img106                    src={userInfo.pfp}107                    className=" bg-gray-200 object-cover w-[80vw] z-0 md:w-auto md:h-[50vh] rounded-3xl"108                  />109                  <div
110                    onClick={() => fileRef.current.click()}
111                    className="opacity-0 hover:opacity-100 w-[80vw] h-full md:w-full rounded-3xl flex absolute top-0  z-10"