Chore: 테스트 파일 제거

This commit is contained in:
정현조 2024-09-19 08:44:45 +09:00
parent 2da76c1bf3
commit 3e397556bb
3 changed files with 0 additions and 98 deletions

View File

@ -1,39 +0,0 @@
import '@/index.css';
import { Meta, StoryObj } from '@storybook/react';
import AdminLayout from './index';
import { Workspace } from '@/types';
const meta: Meta<typeof AdminLayout> = {
title: 'Layout/AdminLayout',
component: AdminLayout,
parameters: {
layout: 'fullscreen',
},
};
export default meta;
type Story = StoryObj<typeof AdminLayout>;
const workspace: Workspace = {
id: 1,
name: 'Workspace Alpha',
projects: [
{
id: 1,
name: 'Project Alpha',
type: 'Segmentation',
children: [],
},
{
id: 2,
name: 'Project Beta',
type: 'Classification',
children: [],
},
],
};
export const Default: Story = {
render: () => <AdminLayout workspace={workspace} />,
};

View File

@ -1,40 +0,0 @@
import { Meta, StoryObj } from '@storybook/react';
import AdminMemberManage from '.';
import { MemberManageFormValues } from './AdminMemberManageForm';
const meta: Meta<typeof AdminMemberManage> = {
title: 'Components/AdminMemberManage',
component: AdminMemberManage,
argTypes: {
title: { control: 'text' },
members: { control: 'object' },
projects: { control: 'object' },
},
};
export default meta;
type Story = StoryObj<typeof AdminMemberManage>;
export const Default: Story = {
args: {
title: '프로젝트 멤버 관리하기',
members: [
{ email: 'admin1@example.com', role: 'admin' },
{ email: 'admin2@example.com', role: 'admin' },
{ email: 'viewer3@example.com', role: 'viewer' },
{ email: 'editor1@example.com', role: 'editor' },
{ email: 'editor2@example.com', role: 'editor' },
{ email: 'editor3@example.com', role: 'editor' },
{ email: 'editor4@example.com', role: 'editor' },
],
projects: [
{ id: 'project-1', name: '프로젝트 A' },
{ id: 'project-2', name: '프로젝트 B' },
{ id: 'project-3', name: '프로젝트 C' },
],
onProjectChange: (projectId: string) => console.log('Selected Project:', projectId),
onMemberInvite: () => console.log('Invite member'),
onSubmit: (data: MemberManageFormValues) => console.log('Submitted:', data),
},
};

View File

@ -1,19 +0,0 @@
import '@/index.css';
import MemberAddModal from '.';
export default {
title: 'Modal/MemberAddModal',
component: MemberAddModal,
};
export const Default = () => (
<MemberAddModal
title="프로젝트 멤버 초대하기"
onClose={() => {
console.log('close');
}}
onSubmit={(data) => {
console.log(data);
}}
/>
);