Skip to content

Commit

Permalink
fix: fix stories
Browse files Browse the repository at this point in the history
  • Loading branch information
thaisguigon committed Apr 25, 2024
1 parent 463a498 commit 9891aad
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
import styled from '@emotion/styled';
import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';

import { FormProviderDecorator } from '~/testing/decorators/FormProviderDecorator';
import { IconsProviderDecorator } from '~/testing/decorators/IconsProviderDecorator';
import { mockedPersonObjectMetadataItem } from '~/testing/mock-data/metadata';

import { SettingsDataModelFieldAboutForm } from '../SettingsDataModelFieldAboutForm';

const StyledContainer = styled.div`
flex: 1;
`;

const meta: Meta<typeof SettingsDataModelFieldAboutForm> = {
title: 'Modules/Settings/DataModel/SettingsDataModelFieldAboutForm',
component: SettingsDataModelFieldAboutForm,
decorators: [ComponentDecorator],
decorators: [
(Story) => (
<StyledContainer>
<Story />
</StyledContainer>
),
FormProviderDecorator,
IconsProviderDecorator,
ComponentDecorator,
],
};

export default meta;
Expand Down

0 comments on commit 9891aad

Please sign in to comment.