From 81756ca1206ecd8908c8aca0a74b9fdd65094c05 Mon Sep 17 00:00:00 2001 From: kikiyeom Date: Thu, 15 Feb 2024 20:13:42 +0900 Subject: [PATCH 1/2] =?UTF-8?q?Fix:=20ref=EB=A1=9C=20=EC=9D=B8=ED=95=9C=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=EB=A5=BC=20=EC=88=98=EC=A0=95=ED=95=98?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ApplicationPanel/ApplicationPanel.component.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/ApplicationDetail/ApplicationPanel/ApplicationPanel.component.tsx b/src/components/ApplicationDetail/ApplicationPanel/ApplicationPanel.component.tsx index facb0dec..7a5c4cc2 100644 --- a/src/components/ApplicationDetail/ApplicationPanel/ApplicationPanel.component.tsx +++ b/src/components/ApplicationDetail/ApplicationPanel/ApplicationPanel.component.tsx @@ -83,6 +83,7 @@ const ControlArea = ({ const [isDatePickerOpened, setIsDatePickerOpened] = useState(false); const outerRef = useRef(null); const selectedApplicationResultStatusRef = useRef(null); + const selectedInterviewStartedAtRef = useRef(null); const handleSelectDate = useCallback( (clickedDate: Dayjs) => { @@ -194,6 +195,7 @@ const ControlArea = ({ disabled={isInterviewConfirmed} defaultValue={timeOptions.find((option) => option.value === dayjs(date).format())} {...register(`interviewStartedAt`, { required: true })} + ref={selectedInterviewStartedAtRef} /> From 5c716897e9c8f24c43120a2b53833f0cf94fc5bb Mon Sep 17 00:00:00 2001 From: kikiyeom Date: Thu, 15 Feb 2024 20:13:56 +0900 Subject: [PATCH 2/2] =?UTF-8?q?Feat:=20=ED=8E=98=EC=9D=B4=EC=A7=80=20?= =?UTF-8?q?=EC=A0=91=EA=B7=BC=20=EC=8B=9C=20=EC=B5=9C=EC=8B=A0=20=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=EB=A5=BC=20=EB=A1=9C=EB=93=9C=ED=95=98?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/ApplicationList/ApplicationList.page.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/ApplicationList/ApplicationList.page.tsx b/src/pages/ApplicationList/ApplicationList.page.tsx index fe65f0c6..d7146ff7 100644 --- a/src/pages/ApplicationList/ApplicationList.page.tsx +++ b/src/pages/ApplicationList/ApplicationList.page.tsx @@ -27,7 +27,7 @@ import { $profile, $generationNumber, } from '@/store'; -import { useConvertToXlsx, useDirty, usePagination } from '@/hooks'; +import { useConvertToXlsx, useDirty, usePagination, useUnmount } from '@/hooks'; import { ApplicationRequest, ApplicationResponse } from '@/types'; import { SortType, TableColumn } from '@/components/common/Table/Table.component'; import { ButtonShape, ButtonSize } from '@/components/common/Button/Button.component'; @@ -311,6 +311,10 @@ const ApplicationList = () => { // eslint-disable-next-line react-hooks/exhaustive-deps }, [loadedTableRows]); + useUnmount(() => { + refreshApplications(); + }); + return ( 지원서 내역