From 55336a762d8f4413e4fa6a84423ec8adfa93fea8 Mon Sep 17 00:00:00 2001
From: en <enes@nostrdev.com>
Date: Sat, 22 Mar 2025 16:27:18 +0100
Subject: [PATCH] feat(profile): add drop-and-drop to profile edit

Fix #219
---
 src/pages/settings/profile.tsx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/pages/settings/profile.tsx b/src/pages/settings/profile.tsx
index 4da983c..b38c880 100644
--- a/src/pages/settings/profile.tsx
+++ b/src/pages/settings/profile.tsx
@@ -1,4 +1,4 @@
-import { InputField } from 'components/Inputs'
+import { InputField, InputFieldWithImageUpload } from 'components/Inputs'
 import { ProfileQRButtonWithPopUp } from 'components/ProfileSection'
 import { useAppDispatch, useAppSelector, useNDKContext } from 'hooks'
 import { kinds, nip19, UnsignedEvent, Event } from 'nostr-tools'
@@ -285,21 +285,21 @@ export const ProfileSettings = () => {
                 value={formState.bio}
                 onChange={handleInputChange}
               />
-              <InputField
+              <InputFieldWithImageUpload
                 label='Profile picture URL'
                 placeholder=''
                 name='picture'
                 inputMode='url'
                 value={formState.picture}
-                onChange={handleInputChange}
+                onInputChange={handleInputChange}
               />
-              <InputField
+              <InputFieldWithImageUpload
                 label='Banner picture URL'
                 placeholder=''
                 name='banner'
                 inputMode='url'
                 value={formState.banner}
-                onChange={handleInputChange}
+                onInputChange={handleInputChange}
               />
               <InputField
                 label='Nip-05 address'