Skip to content

Commit

Permalink
fix: 이벤트 핸들러 명칭 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
WooDaeHyun authored and gxxrxn committed Jun 17, 2024
1 parent 03899d7 commit de6588c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/stories/bookgroup/SimpleBookGroupCard.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default meta;

type Story = StoryObj<typeof SimpleBookGroupCard>;

const moveGroupDetail = () => {
const handleClick = () => {
alert('모임 상세 페이지로 이동');
};

Expand All @@ -20,7 +20,7 @@ export const Default: Story = {
title: '데일카네기 인간관계론',
imageSource: 'https://image.yes24.com/goods/79297023/XL',
isOwner: false,
handleClick: moveGroupDetail,
onClick: handleClick,
},
};

Expand All @@ -29,6 +29,6 @@ export const OwnerCase: Story = {
title: '데일카네기 인간관계론',
imageSource: 'https://image.yes24.com/goods/79297023/XL',
isOwner: true,
handleClick: moveGroupDetail,
onClick: handleClick,
},
};
6 changes: 3 additions & 3 deletions src/v1/bookgroup/SimpleBookGroupCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ interface SimpleBookGroupCardProps {
title: string;
isOwner: boolean;
imageSource: string;
handleClick: () => void;
onClick: () => void;
}

const SimpleBookGroupCard = ({
title,
isOwner,
handleClick,
onClick,
imageSource,
}: SimpleBookGroupCardProps) => {
return (
<div
className="flex h-[15rem] w-[10rem] flex-col gap-[0.5rem]"
onClick={handleClick}
onClick={onClick}
>
<div className="h-[11.6rem] w-[10rem] rounded-[0.534rem] bg-orange-100 px-[1.8rem] py-[1.6rem]">
<Image
Expand Down

0 comments on commit de6588c

Please sign in to comment.