File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import Modal from '@/components/Modal' ;
2+ import { useState } from 'react' ;
3+ import Textarea from '@/components/Textarea'
4+ import ImageUploader from '@/components/ImageUploader' ;
5+
6+ interface EditProfileModalProp {
7+ onClose : ( ) => void ;
8+ }
9+
10+ function EditProfileModal ( { onClose } : EditProfileModalProp ) {
11+ const [ inputText , setInputText ] = useState < string > ( '' ) ;
12+ const [ textarea_Text , setTextarea_Text ] = useState < string > ( '' ) ;
13+
14+ return (
15+ < Modal buttonText = "저장하기" onClose = { onClose } >
16+ < div className = "flex flex-col gap-5 md:gap-10" >
17+ < span className = "mt-5 text-xl font-semibold text-gray-50 lg:text-2xl" >
18+ 프로필 편집
19+ </ span >
20+ < div className = "flex flex-col gap-[10px] md:gap-[15px] lg:gap-5" >
21+ < ImageUploader image = '' onUploadImage = { ( ) => { } } onRemoveImage = { ( ) => { } } />
22+ < input
23+ className = "w-full h-[55px] px-5 outline-none rounded-lg bg-black-400 border border-black-300 caret-white text-white text-[14px] font-normal md:h-[60px] lg:h-[70px] md:font-[16px]"
24+ placeholder = "닉네임을 입력해 주세요"
25+ onChange = { ( e ) => setInputText ( e . target . value ) }
26+ />
27+ < Textarea onChange = { ( e ) => setTextarea_Text ( e . target . value ) } />
28+ </ div >
29+ </ div >
30+ </ Modal >
31+ ) ;
32+ }
33+
34+ export default EditProfileModal ;
You can’t perform that action at this time.
0 commit comments