Skip to content

Commit

Permalink
chore : LetterContainer, MapLetterDetail 스토리북 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
mmjjaa committed Dec 2, 2024
1 parent 4abd5c6 commit 0a25905
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
import type { Meta, StoryObj } from '@storybook/react';

import { LetterContainer } from './LetterContainer';
import { MemoryRouter } from 'react-router-dom';

const meta: Meta<typeof LetterContainer> = {
component: LetterContainer,
title: 'molecule/LetterContainer',
tags: ['autodocs'],
decorators: [
(Story) => (
<MemoryRouter>
<Story />
</MemoryRouter>
)
],
argTypes: {},
parameters: {
docs: {
Expand Down
8 changes: 6 additions & 2 deletions src/components/LetterDetailPage/MapLetterDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ export const MapLetterDetail = ({
return (
<>
<div className="absolute bottom-4 translate-x-40">
<ProfileImage width="50px" height="50px" />
<ProfileImage
imageItem={{ id: '123', name: '가오리', src: '/라밸_샘플' }}
width="50px"
height="50px"
/>
</div>
<p className="absolute left-24 top-60 font-bold">{title}</p>
<p className="absolute left-24 top-[19rem]">{content}</p>
Expand All @@ -35,7 +39,7 @@ export const MapLetterDetail = ({
</div>
<div className="absolute bottom-4 translate-x-60 flex-col">
<p className="ml-2">{date}</p>
<DayCounter width="70px" height="20px" />
<DayCounter daysLeft={21} width="70px" height="20px" />
</div>
</>
);
Expand Down

0 comments on commit 0a25905

Please sign in to comment.