Skip to content

Commit

Permalink
refactor: 명확한 변수명으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
dahyeo-n committed Dec 20, 2024
1 parent 5a0a531 commit 0ea5c0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/FilterDropdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const FilterDropdown: FC<FilterDropdownProps> = ({
return () => document.removeEventListener('mousedown', handleClickOutside);
}, []);

const handleSelect = (option: string) => {
const handleOptionSelect = (option: string) => {
onChange(option);
setIsDropdownOpen(false);
};
Expand Down Expand Up @@ -66,7 +66,7 @@ const FilterDropdown: FC<FilterDropdownProps> = ({
{options.map((option, index) => (
<li
key={index}
onClick={() => handleSelect(option)}
onClick={() => handleOptionSelect(option)}
aria-current={option === selected ? 'true' : undefined}
className={`block w-[149px] h-[44px] px-[23px] py-[10px] text-gray-400 cursor-pointer hover:bg-gray-800`}
>
Expand Down

0 comments on commit 0ea5c0b

Please sign in to comment.