feat(profile): add drop-and-drop to profile edit

Fix 
This commit is contained in:
en 2025-03-22 16:27:18 +01:00
parent fafb217502
commit 55336a762d

@ -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'