Skip to content

Commit

Permalink
pr suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Siggery committed Nov 26, 2024
1 parent faeb870 commit 0c7b7ce
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions apps/pie-storybook/stories/pie-chip.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import { html, nothing } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
import { action } from '@storybook/addon-actions';
import '@justeattakeaway/pie-chip';
import '@justeattakeaway/pie-icons-webc/dist/IconHeartFilled.js';

import { type ChipProps as ChipPropsBase, variants, defaultProps } from '@justeattakeaway/pie-chip';
import { type Meta } from '@storybook/web-components';

import '@justeattakeaway/pie-icons-webc/dist/IconHeartFilled.js';

import { type SlottedComponentProps } from '../types';

import {
Expand All @@ -27,7 +28,6 @@ const defaultArgs: ChipProps = {

const chipStoryMeta: ChipStoryMeta = {
title: 'Chip',

component: 'pie-chip',
argTypes: {
aria: {
Expand Down
1 change: 0 additions & 1 deletion apps/pie-storybook/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './SlottedComponentProps';
export * from './ExtendedMeta';
2 changes: 1 addition & 1 deletion apps/pie-storybook/utilities/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,5 @@ export const createVariantStory = <T>(
disable: true,
},
},
// ...(storyOpts?.argTypes ? { argTypes: storyOpts?.argTypes } : {}),
...(storyOpts?.argTypes ? { argTypes: storyOpts?.argTypes } : {}),
});
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
import { html } from 'lit';
import { ExtendedMeta } from '../types/ExtendedMeta';
import { type Meta } from '@storybook/web-components';

import '@justeattakeaway/pie-<%= fileName %>';
import { type <%= componentName %>Props } from '@justeattakeaway/pie-<%= fileName %>';

import { createStory } from '../utilities';

type <%= componentName %>StoryMeta = ExtendedMeta<<%= componentName %>Props>;
type <%= componentName %>StoryMeta = Meta<<%= componentName %>Props>;

const defaultArgs: <%= componentName %>Props = {};

const <%= componentNameCamelCase %>StoryMeta: <%= componentName %>StoryMeta = {
title: '<%= displayName %>',
component: 'pie-<%= fileName %>',
showInTestingDeployment: true,
argTypes: {},
args: defaultArgs,
parameters: {
Expand Down

0 comments on commit 0c7b7ce

Please sign in to comment.