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%; 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} /> ))}