-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from boogiewooki02/feature/reservation
Feat: 지원자 이메일 입력란 추가
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ interface ApplicantInfoProps { | |
major: string; | ||
address: string; | ||
gender: string; | ||
email: string; | ||
}) => void; | ||
PersonalInfo: { | ||
name: string; | ||
|
@@ -36,14 +37,16 @@ interface ApplicantInfoProps { | |
major: string; | ||
address: string; | ||
gender: string; | ||
email: string; | ||
}; | ||
} | ||
|
||
const ApplicantInfo: React.FC<ApplicantInfoProps> = ({ | ||
onInfoChange, | ||
PersonalInfo, | ||
}) => { | ||
const { name, birth_date, phone_num, major, address, gender } = PersonalInfo; | ||
const { name, birth_date, phone_num, major, address, gender, email } = | ||
PersonalInfo; | ||
|
||
const handleNameChange = (event: React.ChangeEvent<HTMLInputElement>) => { | ||
onInfoChange({ ...PersonalInfo, name: event.target.value }); | ||
|
@@ -76,6 +79,10 @@ const ApplicantInfo: React.FC<ApplicantInfoProps> = ({ | |
}); | ||
}; | ||
|
||
const handleEmailChange = (event: React.ChangeEvent<HTMLInputElement>) => { | ||
onInfoChange({ ...PersonalInfo, email: event.target.value }); | ||
}; | ||
|
||
return ( | ||
<div className="flex flex-col py-10 px-4 pad:px-12"> | ||
<div className="flex flex-col pad:flex-row gap-1 pad:gap-3 pad:items-end"> | ||
|
@@ -111,6 +118,14 @@ const ApplicantInfo: React.FC<ApplicantInfoProps> = ({ | |
onChange={handlePhoneNumChange} | ||
placeholder="전화번호 -없이 입력" | ||
/> | ||
<p className="mt-6 text-[16px] font-normal leading-6">이메일</p> | ||
<Input | ||
className="mt-2" | ||
type="text" | ||
value={email} | ||
onChange={handleEmailChange} | ||
placeholder="예) [email protected]" | ||
/> | ||
<p className="mt-6 text-[16px] font-normal leading-6">성별</p> | ||
<TwoOptionBox | ||
option1={Gender[0].toString()} | ||
|