Skip to content

Commit

Permalink
Merge pull request #222 from Meetfolio-Project-CodeZ-Team/develop
Browse files Browse the repository at this point in the history
merge to main
  • Loading branch information
NAKDO authored May 28, 2024
2 parents f765062 + 57dcbbb commit 5186fad
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/app/(route)/mypage/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default function UserMyPage() {
setUser(resData.result)
}
fetchData()
setPortfolioNumber(0)
}, [])
return (
<section className="flex flex-col min-h-screen relative">
Expand Down
1 change: 1 addition & 0 deletions src/app/components/coverletter/CovletMain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const CovletMain = ({ isEdit, id }: CovletFinishContainerProps) => {

setTid(tid)


useEffect(() => {
if (pg_token) {
const getTid = async () => {
Expand Down
12 changes: 10 additions & 2 deletions src/app/components/experience/ExpInfoContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ const ExpInfoContainer = ({ isEdit, id }: ExpFinishContainerProps) => {
[event.target.name]: event.target.value,
})
}
const handleInputChange2 = (event: React.ChangeEvent<HTMLInputElement>) => {
const { name, value } = event.target;
setExperienceData({ ...experienceData, [name]: value });
};

const handleTextareaChange = (
event: React.ChangeEvent<HTMLTextAreaElement>,
Expand Down Expand Up @@ -104,13 +108,15 @@ const ExpInfoContainer = ({ isEdit, id }: ExpFinishContainerProps) => {
<input
type="date"
value={experienceData.startDate}
onChange={handleInputChange}
onChange={handleInputChange2}
id="startDate"
name="startDate"
placeholder="YYYY-MM-DD"
maxLength={10}
max={new Date().toISOString().split("T")[0]}
className="w-[275px] h-[45px] bg-white border border-gray-300 focus:border-gray-500 focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out rounded-[10px]"
/>

<div className="w-[133px] h-[23px] left-[147px] top-[50px] absolute text-center text-black text-opacity-30 text-base font-medium leading-normal">
ex) 2024-02-18
</div>
Expand All @@ -125,11 +131,13 @@ const ExpInfoContainer = ({ isEdit, id }: ExpFinishContainerProps) => {
<input
type="date"
value={experienceData.endDate}
onChange={handleInputChange}
onChange={handleInputChange2}
id="endDate"
name="endDate"
placeholder="YYYY-MM-DD"
maxLength={10}
max={new Date().toISOString().split("T")[0]}
min={experienceData.startDate}
className="w-[275px] h-[45px] bg-white border border-gray-300 focus:border-gray-500 focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out rounded-[10px]"
/>
</div>
Expand Down

0 comments on commit 5186fad

Please sign in to comment.