From f1b480a55524382263dda6f6ae96384be79a8118 Mon Sep 17 00:00:00 2001 From: Seunghyo Date: Thu, 23 May 2024 04:05:15 +0900 Subject: [PATCH 1/2] feat: input font size --- src/components/JD/ContentInput.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/JD/ContentInput.tsx b/src/components/JD/ContentInput.tsx index b3168dc..362e11a 100644 --- a/src/components/JD/ContentInput.tsx +++ b/src/components/JD/ContentInput.tsx @@ -49,8 +49,7 @@ const Content = styled.textarea` outline: none; resize: none; padding: 0.5rem; - font-size: 14px; - font-size: 0.8125rem; + font-size: 16px; font-style: normal; font-weight: 400; line-height: 100%; From 48449d37b7cfd0309d226649227be0277cb61278 Mon Sep 17 00:00:00 2001 From: Seunghyo Date: Thu, 23 May 2024 04:21:13 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=EB=B6=81=EB=A7=88=ED=81=AC?= =?UTF-8?q?=EC=8B=9C=20api=20=EC=9E=AC=ED=98=B8=EC=B6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/JD/Experience.tsx | 7 ++++++- src/components/JD/ExperienceList.tsx | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/JD/Experience.tsx b/src/components/JD/Experience.tsx index 005169c..2263bb5 100644 --- a/src/components/JD/Experience.tsx +++ b/src/components/JD/Experience.tsx @@ -6,7 +6,7 @@ import { Question } from "../../types/type"; import bookmarkFillIcon from "../../assets/icons/icon_bookmark_fill.svg"; import bookmarkBlankIcon from "../../assets/icons/icon_bookmark_blank.svg"; import dayjs from "dayjs"; -import { KeywordType, QuestionType } from "../../types/experience"; +import { QuestionType } from "../../types/experience"; import { bookmarkpatch } from "../../services/JD/bookmarkApi"; import { getCookie } from "../../services/cookie"; import { useParams } from "react-router-dom"; @@ -26,6 +26,7 @@ interface ExpProps { detail?: QuestionType[]; checkedKeywords?: string[]; onClick?: () => void; + handleApi?: (jdid: string, token: string) => void; } const Experience: React.FC = ({ @@ -42,6 +43,7 @@ const Experience: React.FC = ({ detail, checkedKeywords, onClick, + handleApi, }) => { const [detailId, setDetailId] = useRecoilState(detailStore); const [localbookmark, setLocalbookmark] = useState(bookmark); @@ -68,6 +70,9 @@ const Experience: React.FC = ({ try { const response = await bookmarkpatch(token, jobId, expId); console.log(response); + if (jdId && user.token) { + handleApi!(jdId, user.token); + } } catch (error) { console.error(error); alert(JSON.stringify(error)); diff --git a/src/components/JD/ExperienceList.tsx b/src/components/JD/ExperienceList.tsx index 633e249..462e6d2 100644 --- a/src/components/JD/ExperienceList.tsx +++ b/src/components/JD/ExperienceList.tsx @@ -468,6 +468,7 @@ const ExperienceList: React.FC = ({ (item: KeywordType) => item.name )} onClick={() => setshowDetail(true)} + handleApi={getExperienceList} /> ))}