From 856454c061604c536c737350a15286a6278b955d Mon Sep 17 00:00:00 2001 From: DaeHyun_Woo Date: Sat, 4 Nov 2023 18:21:05 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8?= =?UTF-8?q?=EB=AA=85=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...oup.stories.tsx => SimpleBookGroupCard.stories.tsx} | 10 +++++----- .../{SimpleGroup.tsx => SimpleBookGroupCard.tsx} | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) rename src/stories/bookgroup/{SimpleGroup.stories.tsx => SimpleBookGroupCard.stories.tsx} (71%) rename src/v1/bookgroup/{SimpleGroup.tsx => SimpleBookGroupCard.tsx} (84%) diff --git a/src/stories/bookgroup/SimpleGroup.stories.tsx b/src/stories/bookgroup/SimpleBookGroupCard.stories.tsx similarity index 71% rename from src/stories/bookgroup/SimpleGroup.stories.tsx rename to src/stories/bookgroup/SimpleBookGroupCard.stories.tsx index 0e36f0bd..19955863 100644 --- a/src/stories/bookgroup/SimpleGroup.stories.tsx +++ b/src/stories/bookgroup/SimpleBookGroupCard.stories.tsx @@ -1,15 +1,15 @@ import { Meta, StoryObj } from '@storybook/react'; -import SimpleGroup from '@/v1/bookgroup/SimpleGroup'; +import SimpleBookGroupCard from '@/v1/bookgroup/SimpleBookGroupCard'; -const meta: Meta = { - title: 'BookGroup/SimpleGroup', - component: SimpleGroup, +const meta: Meta = { + title: 'BookGroup/SimpleBookGroupCard', + component: SimpleBookGroupCard, tags: ['autodocs'], }; export default meta; -type Story = StoryObj; +type Story = StoryObj; const moveGroupDetail = () => { alert('모임 상세 페이지로 이동'); diff --git a/src/v1/bookgroup/SimpleGroup.tsx b/src/v1/bookgroup/SimpleBookGroupCard.tsx similarity index 84% rename from src/v1/bookgroup/SimpleGroup.tsx rename to src/v1/bookgroup/SimpleBookGroupCard.tsx index 154fac4a..e75f2405 100644 --- a/src/v1/bookgroup/SimpleGroup.tsx +++ b/src/v1/bookgroup/SimpleBookGroupCard.tsx @@ -1,18 +1,18 @@ import Image from 'next/image'; -interface SimpleGroupProps { +interface SimpleBookGroupCardProps { title: string; isOwner: boolean; imageSource: string; handleClick: () => void; } -const SimpleGroup = ({ +const SimpleBookGroupCard = ({ title, isOwner, handleClick, imageSource, -}: SimpleGroupProps) => { +}: SimpleBookGroupCardProps) => { return (