Skip to content

Commit

Permalink
feat: 좋아요버튼 클릭시 테두리 생기는 현상 해결 (탭인덱스제거)
Browse files Browse the repository at this point in the history
  • Loading branch information
skiende74 committed Oct 24, 2024
1 parent 2094e65 commit 9862d7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/components/_common/Like/LikeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const LikeButton = ({ isLiked = false, checklistId }: Props) => {
const [localIsLiked, setLocalIsLiked] = useState(isLiked);

const { mutate: toggleLike, variables, isPending } = useToggleLikeQuery();
const debouncedIsLiked = useDebounce({ value: localIsLiked, delay: 500 });
const debouncedIsLiked = useDebounce({ value: localIsLiked, delay: 200 });

useEffect(() => {
if (debouncedIsLiked !== isLiked) {
Expand All @@ -41,7 +41,6 @@ const LikeButton = ({ isLiked = false, checklistId }: Props) => {
onClick={handleClickLike}
fill={fill ? theme.palette.red500 : 'NONE'}
stroke={fill ? theme.palette.red500 : theme.palette.grey500}
tabIndex={1}
aria-label="좋아요 버튼"
/>
);
Expand Down

0 comments on commit 9862d7f

Please sign in to comment.