Skip to content

Commit

Permalink
Merge pull request #297 from mash-up-kr/feature/update-application
Browse files Browse the repository at this point in the history
지원서 목록 최신 데이터 로드, 지원서 상세 면접 일시 셀렉트 버그 수정
  • Loading branch information
kikiyeom authored Feb 16, 2024
2 parents eed7bfd + 5c71689 commit e1e0de8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const ControlArea = ({
const [isDatePickerOpened, setIsDatePickerOpened] = useState(false);
const outerRef = useRef<HTMLDivElement>(null);
const selectedApplicationResultStatusRef = useRef<HTMLInputElement>(null);
const selectedInterviewStartedAtRef = useRef<HTMLInputElement>(null);

const handleSelectDate = useCallback(
(clickedDate: Dayjs) => {
Expand Down Expand Up @@ -194,6 +195,7 @@ const ControlArea = ({
disabled={isInterviewConfirmed}
defaultValue={timeOptions.find((option) => option.value === dayjs(date).format())}
{...register(`interviewStartedAt`, { required: true })}
ref={selectedInterviewStartedAtRef}
/>
</Styled.SelectTimeField>
</Styled.SelectContainer>
Expand Down
6 changes: 5 additions & 1 deletion src/pages/ApplicationList/ApplicationList.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -311,6 +311,10 @@ const ApplicationList = () => {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [loadedTableRows]);

useUnmount(() => {
refreshApplications();
});

return (
<Styled.PageWrapper>
<Styled.Heading>지원서 내역</Styled.Heading>
Expand Down

0 comments on commit e1e0de8

Please sign in to comment.