1- import { useCallback } from 'react' ;
1+ import { useCallback , useMemo } from 'react' ;
22import { useNavigate , useParams } from 'react-router-dom' ;
33import { useApplicants } from '@/pages/admin/Dashboard/hooks/useApplicants' ;
44import { STAGE_LABEL } from '@/pages/admin/Dashboard/utils/labelMap' ;
@@ -30,10 +30,10 @@ export const ApplicantList = ({ filterOption, stage }: Props) => {
3030 interviewRequired,
3131 } = useApplicants ( Number ( clubId ) , apiStage , filterOption ) ;
3232
33- const categories = ( ) => {
33+ const categories = useMemo ( ( ) => {
3434 const base : ApplicateInfoCategory [ ] = [ '이름' , '학번' , '학과' , '전화번호' , '이메일' , '결과' ] ;
3535 return interviewRequired ? [ ...base , '면접 시간' ] : base ;
36- } ;
36+ } , [ interviewRequired ] ) ;
3737
3838 const handleItemClick = useCallback (
3939 ( applicantId : number ) => {
@@ -48,7 +48,7 @@ export const ApplicantList = ({ filterOption, stage }: Props) => {
4848 return (
4949 < S . Container >
5050 < S . ApplicantInfoCategoryList hasInterview = { interviewRequired } >
51- { categories ( ) . map ( ( category ) => (
51+ { categories . map ( ( category ) => (
5252 < S . CategoryText key = { category } > { category } </ S . CategoryText >
5353 ) ) }
5454 </ S . ApplicantInfoCategoryList >
0 commit comments