diff --git a/src/components/home/profile/profileEdit/profileCorrection/index.tsx b/src/components/home/profile/profileEdit/profileCorrection/index.tsx index 82b3c37..5a9a7c3 100644 --- a/src/components/home/profile/profileEdit/profileCorrection/index.tsx +++ b/src/components/home/profile/profileEdit/profileCorrection/index.tsx @@ -11,7 +11,7 @@ const schoolOptions = [ "광주소프트웨어마이스터고등학교" ]; -const Modal: React.FC = ({ isOpen, onClose, title, value, onSave }) => { +const Modal = ({ isOpen, onClose, title, value, onSave }: ModalProps) => { const [inputValue, setInputValue] = useState(value); const [selectedSchool, setSelectedSchool] = useState(schoolOptions[0]); const [password, setPassword] = useState(""); @@ -58,7 +58,17 @@ const Modal: React.FC = ({ isOpen, onClose, title, value, onSave }) placeholder="새로운 이름 입력" /> - ) : title === "비밀번호" ? ( + ) : title === "이메일" ? ( + <> + 새로운 이메일을 입력해주세요 + setInputValue(e.target.value)} + placeholder="새로운 이메일을 입력" + /> + + ) :title === "비밀번호" ? ( <> 새로운 비밀번호를 입력해주세요 = ({ isOpen, onClose, title, value, onSave }) )} - {title === "학교" || title === "이름" || title === "비밀번호" ? ( + {title === "학교" || title === "이름" || title === "이메일" || title === "비밀번호" ? ( <> 기존의 비밀번호를 입력해주세요