From c66280e8579c4a51c60306ad2ed070276b0156b0 Mon Sep 17 00:00:00 2001 From: Lulox Date: Tue, 15 Oct 2024 14:55:32 -0300 Subject: [PATCH] Error fix --- .../app/profile/_components/ProfilePictureUpload.tsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/nextjs/app/profile/_components/ProfilePictureUpload.tsx b/packages/nextjs/app/profile/_components/ProfilePictureUpload.tsx index 99ef22c..2f09c7a 100644 --- a/packages/nextjs/app/profile/_components/ProfilePictureUpload.tsx +++ b/packages/nextjs/app/profile/_components/ProfilePictureUpload.tsx @@ -21,7 +21,6 @@ const ProfilePictureUpload: React.FC = ({ const [previewImage, setPreviewImage] = useState(""); const [dragActive, setDragActive] = useState(false); const [loading, setLoading] = useState(false); - const [hovered, setHovered] = useState(false); useEffect(() => { if (profilePicture) { @@ -90,8 +89,6 @@ const ProfilePictureUpload: React.FC = ({ onDragOver={handleDragOver} onDragLeave={handleDragLeave} onDrop={handleDrop} - onMouseEnter={() => setHovered(true)} - onMouseLeave={() => setHovered(false)} > = ({ height={128} /> )} - {hovered && previewImage && ( - - )} {loading && (
Uploading...