Skip to content

Commit

Permalink
feat: StampPickerコンポーネントにクリックハンドラーを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
reiroop committed Jan 25, 2025
1 parent 1460c08 commit 99541b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/src/components/StampPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ export const StampPicker: React.FC = () => {
},
])
.flat();
const clickHandler = () => {
setIsPopoverOpen(false);
};

return (
<Popover
Expand All @@ -46,6 +49,7 @@ export const StampPicker: React.FC = () => {
<img src={ReactionAssets[reaction.kind]} alt={reaction.kind} />
}
className="hover:bg-background-secondary"
onClick={clickHandler}
/>
))}
</div>
Expand Down

0 comments on commit 99541b3

Please sign in to comment.