Skip to content

Commit

Permalink
Style: vote detail checkbox point-events 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
goeun208 committed Apr 25, 2024
1 parent 37d9f1f commit 314182b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/vote/VoteChoiceOption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ const VoteChoiceOption = ({
backgroundColor: isClosed && voteMax?.bestPlaceId === bestPlaceId ? '#FFEADB' : '',
}}>
{checkedBox ? (
<div style={{ pointerEvents: isClosed ? 'none' : 'auto' }} onClick={() => setCheckedBox(!checkedBox)}>
<div onClick={() => setCheckedBox(!checkedBox)}>
<CheckBox />
</div>
) : (
<div style={{ pointerEvents: isClosed ? 'none' : 'auto' }} onClick={() => setCheckedBox(!checkedBox)}>
// style={{ pointerEvents: isClosed ? 'none' : 'auto' }} 임시 삭제
<div onClick={() => setCheckedBox(!checkedBox)}>
<NoCheckBox />
</div>
)}
Expand Down

0 comments on commit 314182b

Please sign in to comment.