Skip to content

Commit

Permalink
feat :: 기술필터 적용 시 색변화
Browse files Browse the repository at this point in the history
  • Loading branch information
KANGYONGSU23 committed Dec 8, 2023
1 parent 3f60d91 commit 03c133f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 9 additions & 1 deletion src/components/common/SearchDropDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,20 @@ function SearchDropDown({ title }: PropsType) {
winter_intern: "",
});

const isTechCode = !!getQueryString("tech_code");

return (
<div
className="h-10 pr-[12px] pl-4 border border-solid border-[#cccccc] rounded-[8px] flex items-center gap-[23px] text-b3 leading-b3 font-r text-[#7f7f7f] relative"
onClick={toggleDropdown}
>
<p>{title}</p>
<p
className={`${
isTechCode ? "text-lightBlue font-m" : "text-[#7f7f7f] font-r"
}`}
>
{title}
</p>
<Icon icon="Chevron" color="gray60" />
<DropDownComponent className="absolute left-0 min-w-full top-11">
<TechCodeDropDownComponent
Expand Down
6 changes: 2 additions & 4 deletions src/components/recruitments/filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@ function Filter() {

const onSearch = () => {
setQueryString({
...filter,
page: "1",
job_code: filter.job_code,
tech_code: filter.tech_code,
name: searchState.search,
winter_intern: filter.winter_intern,
});
};

Expand All @@ -53,7 +51,7 @@ function Filter() {
} else setFilter((prev) => ({ ...prev, [jobType]: itemCode }));
};

const { data:codes } = useGetCode("JOB");
const { data: codes } = useGetCode("JOB");

const jobCodeDropdownItems = codes?.codes.map((item) => ({
code: item.code.toString(),
Expand Down

0 comments on commit 03c133f

Please sign in to comment.