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 { ProfileQRButtonWithPopUp } from 'components/ProfileSection'
import { useAppDispatch, useAppSelector, useNDKContext } from 'hooks' import { useAppDispatch, useAppSelector, useNDKContext } from 'hooks'
import { kinds, nip19, UnsignedEvent, Event } from 'nostr-tools' import { kinds, nip19, UnsignedEvent, Event } from 'nostr-tools'
@ -285,21 +285,21 @@ export const ProfileSettings = () => {
value={formState.bio} value={formState.bio}
onChange={handleInputChange} onChange={handleInputChange}
/> />
<InputField <InputFieldWithImageUpload
label='Profile picture URL' label='Profile picture URL'
placeholder='' placeholder=''
name='picture' name='picture'
inputMode='url' inputMode='url'
value={formState.picture} value={formState.picture}
onChange={handleInputChange} onInputChange={handleInputChange}
/> />
<InputField <InputFieldWithImageUpload
label='Banner picture URL' label='Banner picture URL'
placeholder='' placeholder=''
name='banner' name='banner'
inputMode='url' inputMode='url'
value={formState.banner} value={formState.banner}
onChange={handleInputChange} onInputChange={handleInputChange}
/> />
<InputField <InputField
label='Nip-05 address' label='Nip-05 address'