Skip to content

Commit

Permalink
feat : 프로필 이미지 스토리북 오류 수정 (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmlim0070 authored Dec 2, 2024
1 parent cf2e718 commit 3c253c1
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions src/components/Common/ProfileImage/ProfileImage.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,35 @@
// src/components/Common/ProfileImage/ProfileImage.stories.tsx
import type { Meta, StoryObj } from '@storybook/react';
import { ProfileImage } from './ProfileImage';

const meta: Meta<typeof ProfileImage> = {
const meta = {
title: 'Atoms/ProfileImage',
component: ProfileImage,
title: 'atoms/ProfileImage',
tags: ['autodocs'],
argTypes: {}
};
parameters: {
layout: 'centered'
},
tags: ['autodocs']
} satisfies Meta<typeof ProfileImage>;

export default meta;
type Story = StoryObj<typeof meta>;

type Story = StoryObj<typeof ProfileImage>;
const sampleProfileImage = {
id: 'sample-1',
name: '샘플 이미지',
src: '/testimg.jpg'
};

export const Default: Story = {
args: {}
args: {
imageItem: sampleProfileImage
}
};

export const CustomSize: Story = {
args: {
width: '150px',
height: '150px',
imageItem: sampleProfileImage
}
};

0 comments on commit 3c253c1

Please sign in to comment.