Skip to content

Commit 232e2a4

Browse files
authored
Merge pull request codeit-13-3team#87 from codeit-13-3team/feature/editProfileModal
Feature/EditProfileModal
2 parents efc55d4 + 5c26033 commit 232e2a4

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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;

0 commit comments

Comments
 (0)