Skip to content

Commit

Permalink
Merge pull request #162 from MeeTeamNumdle/release-1.0
Browse files Browse the repository at this point in the history
fix: 상세 조건 하이라이트 버그 수정 - 배포 사이트에 적용
  • Loading branch information
prgmr99 authored May 7, 2024
2 parents f794195 + 625c272 commit 75fdcd0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,6 @@ const DetailedInput = ({
});
}

if (
filterState.skill.length !== 0 ||
filterState.role.length !== 0 ||
filterState.tag.length !== 0
) {
detailOptionsSelected();
}

setSearchParams(searchParams);
closeHandler();
};
Expand Down Expand Up @@ -191,13 +183,6 @@ const DetailedInput = ({
}
setIsOpenMenu(false);
}, [type]);
useEffect(() => {
if (filterState.role.length === 0 && filterState.skill.length && filterState.tag.length) {
detailOptionsNotSelected();
} else {
detailOptionsSelected();
}
}, [filterState.role, filterState.skill, filterState.tag]);

return (
<section className='dropdown-search'>
Expand Down
12 changes: 12 additions & 0 deletions src/pages/recruit/recruitPage/RecruitPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,18 @@ const RecruitPage = () => {
setPreviousLocationState(location.pathname + location.search);
}, [location]);

useEffect(() => {
if (
filterState.role.length === 0 &&
filterState.skill.length === 0 &&
filterState.tag.length === 0
) {
detailOptionsNotSelected();
} else {
detailOptionsSelected();
}
}, [filterState.role, filterState.skill, filterState.tag]);

useEffect(() => {
const isScope = searchParams.get('scope');
const isCategory = searchParams.get('category');
Expand Down

0 comments on commit 75fdcd0

Please sign in to comment.