Skip to content

Commit

Permalink
fix: 컴포넌트명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
WooDaeHyun committed Oct 22, 2023
1 parent c37fca6 commit 3a9e416
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/stories/bookGroup/DetailMyGroup.stories.tsx
Original file line number Diff line number Diff line change
@@ -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<typeof DetailMyGroup> = {
title: 'bookgroup/DetailMyGroup',
component: DetailMyGroup,
const meta: Meta<typeof BookGroupDetail> = {
title: 'bookgroup/BookGroupDetail',
component: BookGroupDetail,
tags: ['autodocs'],
};

export default meta;

type Story = StoryObj<typeof DetailMyGroup>;
type Story = StoryObj<typeof BookGroupDetail>;

export const Default: Story = {
args: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down Expand Up @@ -42,7 +42,7 @@ const toDayFromMillseconds = (value: number) => {
return Math.ceil(value / (1000 * 60 * 60 * 24));
};

const DetailMyGroup = ({
const BookGroupDetail = ({
title,
description,
book,
Expand All @@ -52,7 +52,7 @@ const DetailMyGroup = ({
commentCount,
isPublic,
handleClick,
}: DetailMyGroupProps) => {
}: BookGroupDetailProps) => {
const ddayByStart = toDayFromMillseconds(
new Date(date.start).getTime() - new Date().getTime()
);
Expand Down Expand Up @@ -95,7 +95,7 @@ const DetailMyGroup = ({
);
};

export default DetailMyGroup;
export default BookGroupDetail;

const getDdayBadgeInfo = (status: BookGroupStatus, ddayCount?: number) => {
switch (status) {
Expand Down

0 comments on commit 3a9e416

Please sign in to comment.