From 3a9e416f62e9524454628812edc9449b19b6c638 Mon Sep 17 00:00:00 2001 From: DaeHyun_Woo Date: Sun, 22 Oct 2023 13:50:21 +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 --- src/stories/bookGroup/DetailMyGroup.stories.tsx | 10 +++++----- .../{DetailMyGroup.tsx => BookGroupDetail.tsx} | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) rename src/v1/bookgroup/{DetailMyGroup.tsx => BookGroupDetail.tsx} (98%) diff --git a/src/stories/bookGroup/DetailMyGroup.stories.tsx b/src/stories/bookGroup/DetailMyGroup.stories.tsx index 684b01e8..8f1a0ffb 100644 --- a/src/stories/bookGroup/DetailMyGroup.stories.tsx +++ b/src/stories/bookGroup/DetailMyGroup.stories.tsx @@ -1,16 +1,16 @@ import { Meta, StoryObj } from '@storybook/react'; -import DetailMyGroup from '@/v1/bookgroup/DetailMyGroup'; +import BookGroupDetail from '@/v1/bookgroup/BookGroupDetail'; -const meta: Meta = { - title: 'bookgroup/DetailMyGroup', - component: DetailMyGroup, +const meta: Meta = { + title: 'bookgroup/BookGroupDetail', + component: BookGroupDetail, tags: ['autodocs'], }; export default meta; -type Story = StoryObj; +type Story = StoryObj; export const Default: Story = { args: { diff --git a/src/v1/bookgroup/DetailMyGroup.tsx b/src/v1/bookgroup/BookGroupDetail.tsx similarity index 98% rename from src/v1/bookgroup/DetailMyGroup.tsx rename to src/v1/bookgroup/BookGroupDetail.tsx index 8ca3f666..7c0b4939 100644 --- a/src/v1/bookgroup/DetailMyGroup.tsx +++ b/src/v1/bookgroup/BookGroupDetail.tsx @@ -3,7 +3,7 @@ import Image from 'next/image'; import Badge from '@/ui/Base/Badge'; import { IconCalendar, IconMembers, IconComments } from '@public/icons'; -interface DetailMyGroupProps { +interface BookGroupDetailProps { title: string; description: string; book: { title: string; bookImageSrc: string }; @@ -42,7 +42,7 @@ const toDayFromMillseconds = (value: number) => { return Math.ceil(value / (1000 * 60 * 60 * 24)); }; -const DetailMyGroup = ({ +const BookGroupDetail = ({ title, description, book, @@ -52,7 +52,7 @@ const DetailMyGroup = ({ commentCount, isPublic, handleClick, -}: DetailMyGroupProps) => { +}: BookGroupDetailProps) => { const ddayByStart = toDayFromMillseconds( new Date(date.start).getTime() - new Date().getTime() ); @@ -95,7 +95,7 @@ const DetailMyGroup = ({ ); }; -export default DetailMyGroup; +export default BookGroupDetail; const getDdayBadgeInfo = (status: BookGroupStatus, ddayCount?: number) => { switch (status) {