docs: use ComponentDecorator (#800)

Related to #702
This commit is contained in:
Thaïs
2023-07-21 21:02:21 +02:00
committed by GitHub
parent 79fccb0404
commit 56cff63c4b
36 changed files with 777 additions and 910 deletions

View File

@ -1,19 +1,17 @@
import type { Meta, StoryObj } from '@storybook/react';
import { getRenderWrapperForComponent } from '~/testing/renderWrappers';
import { ComponentDecorator } from '~/testing/decorators';
import { ActionBar } from '../ActionBar';
const meta: Meta<typeof ActionBar> = {
title: 'UI/ActionBar/ActionBar',
component: ActionBar,
decorators: [ComponentDecorator],
args: { children: 'Lorem ipsum', selectedIds: [] },
};
export default meta;
type Story = StoryObj<typeof ActionBar>;
export const Default: Story = {
render: getRenderWrapperForComponent(
<ActionBar children={<div />} selectedIds={[]} />,
),
};
export const Default: Story = {};