Skip to content

Commit

Permalink
[feat]: 프로필사진 클릭 시 피커 오픈 (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
uraflower committed May 30, 2024
1 parent f59101a commit 81c118a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/layouts/Product/BuyInfo/ButtonBundles/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ const ButtonBundles = ({
});
};

// 친구 프로필 이미지 클릭 핸들러
const handleClickProfile = (e: React.MouseEvent<HTMLDivElement>) => {
e.stopPropagation();
openKakaoPicker();
};

// 선물상자 담기 버튼 핸들러
const handleClickCart = () => {
// console.log('선물상자 담기');
Expand Down Expand Up @@ -188,7 +194,7 @@ const ButtonBundles = ({
onClick={handleClickGiftForFriend}
className={styles.btn_gift}
>
<div className={styles.wrapper_profile}>
<div className={styles.wrapper_profile} onClick={handleClickProfile}>
<img
src={getImgUrl(DefaultProfileImage)}
alt="선물할 친구 프로필 사진"
Expand Down

0 comments on commit 81c118a

Please sign in to comment.