mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 18:41:06 +08:00
FIX stories in CSF having wrong capitalization
This commit is contained in:
parent
702b9b0a0d
commit
e0df358e22
@ -8,7 +8,7 @@ const action2 = action('action2');
|
||||
const action3 = action('action3');
|
||||
|
||||
export default {
|
||||
Component: ActionBar,
|
||||
component: ActionBar,
|
||||
title: 'Basics|ActionBar',
|
||||
decorators: [
|
||||
(storyFn: () => ReactNode) => (
|
||||
|
@ -5,7 +5,7 @@ import { DocsPageWrapper } from './DocsPage';
|
||||
|
||||
export default {
|
||||
title: 'Docs|ColorPalette',
|
||||
Component: ColorPalette,
|
||||
component: ColorPalette,
|
||||
decorators: [getStory => <DocsPageWrapper>{getStory()}</DocsPageWrapper>],
|
||||
};
|
||||
|
||||
|
@ -6,7 +6,7 @@ import markdownCaption from './DocsPageExampleCaption.md';
|
||||
|
||||
export default {
|
||||
title: 'Docs|Description',
|
||||
Component: Description,
|
||||
component: Description,
|
||||
decorators: [getStory => <DocsPageWrapper>{getStory()}</DocsPageWrapper>],
|
||||
};
|
||||
|
||||
|
@ -8,7 +8,7 @@ import * as descriptionStories from './Description.stories';
|
||||
|
||||
export default {
|
||||
title: 'Docs|DocsPage',
|
||||
Component: DocsPage,
|
||||
component: DocsPage,
|
||||
decorators: [
|
||||
storyFn => (
|
||||
<DocsWrapper>
|
||||
|
@ -5,7 +5,7 @@ import { DocsPageWrapper } from './DocsPage';
|
||||
|
||||
export default {
|
||||
title: 'Docs|EmptyBlock',
|
||||
Component: EmptyBlock,
|
||||
component: EmptyBlock,
|
||||
decorators: [getStory => <DocsPageWrapper>{getStory()}</DocsPageWrapper>],
|
||||
};
|
||||
|
||||
|
@ -6,7 +6,7 @@ import { Icons as ExampleIcon } from '../icon/icon';
|
||||
|
||||
export default {
|
||||
title: 'Docs|IconGallery',
|
||||
Component: IconGallery,
|
||||
component: IconGallery,
|
||||
decorators: [getStory => <DocsPageWrapper>{getStory()}</DocsPageWrapper>],
|
||||
};
|
||||
|
||||
|
@ -8,7 +8,7 @@ import * as sourceStories from './Source.stories';
|
||||
|
||||
export default {
|
||||
title: 'Docs|Preview',
|
||||
Component: Preview,
|
||||
component: Preview,
|
||||
decorators: [getStory => <DocsPageWrapper>{getStory()}</DocsPageWrapper>],
|
||||
};
|
||||
|
||||
|
@ -5,7 +5,7 @@ import { Table } from './PropsTable';
|
||||
import { DocsPageWrapper } from '../DocsPage';
|
||||
|
||||
export default {
|
||||
Component: PropRow,
|
||||
component: PropRow,
|
||||
title: 'Docs|PropRow',
|
||||
excludeStories: /.*Def$/,
|
||||
decorators: [
|
||||
|
@ -4,7 +4,7 @@ import { DocsPageWrapper } from '../DocsPage';
|
||||
import { stringDef, numberDef } from './PropRow.stories';
|
||||
|
||||
export default {
|
||||
Component: PropsTable,
|
||||
component: PropsTable,
|
||||
title: 'Docs|PropTable',
|
||||
decorators: [storyFn => <DocsPageWrapper>{storyFn()}</DocsPageWrapper>],
|
||||
};
|
||||
|
@ -4,7 +4,7 @@ import { DocsPageWrapper } from './DocsPage';
|
||||
|
||||
export default {
|
||||
title: 'Docs|Source',
|
||||
Component: Source,
|
||||
component: Source,
|
||||
decorators: [getStory => <DocsPageWrapper>{getStory()}</DocsPageWrapper>],
|
||||
};
|
||||
|
||||
|
@ -5,7 +5,7 @@ import { Button } from '../Button/Button';
|
||||
|
||||
export default {
|
||||
title: 'Docs|Story',
|
||||
Component: Story,
|
||||
component: Story,
|
||||
decorators: [getStory => <DocsPageWrapper>{getStory()}</DocsPageWrapper>],
|
||||
};
|
||||
|
||||
|
@ -5,7 +5,7 @@ import { DocsPageWrapper } from './DocsPage';
|
||||
|
||||
export default {
|
||||
title: 'Docs|Typeset',
|
||||
Component: Typeset,
|
||||
component: Typeset,
|
||||
decorators: [getStory => <DocsPageWrapper>{getStory()}</DocsPageWrapper>],
|
||||
};
|
||||
|
||||
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||
import { StorybookLogo } from './StorybookLogo';
|
||||
|
||||
export default {
|
||||
Component: StorybookLogo,
|
||||
component: StorybookLogo,
|
||||
title: 'Basics|Brand/StorybookLogo',
|
||||
};
|
||||
|
||||
|
@ -4,7 +4,7 @@ import { Placeholder } from './placeholder';
|
||||
import { Link } from '../typography/link/link';
|
||||
|
||||
export default {
|
||||
Component: Placeholder,
|
||||
component: Placeholder,
|
||||
title: 'Basics|Placeholder',
|
||||
};
|
||||
|
||||
|
@ -5,7 +5,7 @@ import { DocumentFormatting } from './DocumentFormatting';
|
||||
import markdownSample from './DocumentFormattingSample.md';
|
||||
|
||||
export default {
|
||||
Component: DocumentFormatting,
|
||||
component: DocumentFormatting,
|
||||
title: 'Basics|DocumentFormatting',
|
||||
decorators: [
|
||||
(storyFn: any) => (
|
||||
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||
import { IFrame } from './iframe';
|
||||
|
||||
export default {
|
||||
Component: IFrame,
|
||||
component: IFrame,
|
||||
title: 'UI|Preview/Iframe',
|
||||
};
|
||||
|
||||
|
@ -5,7 +5,7 @@ import { standardData as standardHeaderData } from './SidebarHeading.stories';
|
||||
import { withRootData } from './SidebarStories.stories';
|
||||
|
||||
export default {
|
||||
Component: Sidebar,
|
||||
component: Sidebar,
|
||||
title: 'UI|Sidebar/Sidebar',
|
||||
excludeStories: /.*Data$/,
|
||||
};
|
||||
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||
import SidebarItem from './SidebarItem';
|
||||
|
||||
export default {
|
||||
Component: SidebarItem,
|
||||
component: SidebarItem,
|
||||
title: 'UI|Sidebar/SidebarItem',
|
||||
decorators: [
|
||||
(storyFn: any) => (
|
||||
|
@ -4,7 +4,7 @@ import { actions as makeActions } from '@storybook/addon-actions';
|
||||
import SidebarSearch, { PureSidebarSearch } from './SidebarSearch';
|
||||
|
||||
export default {
|
||||
Component: SidebarSearch,
|
||||
component: SidebarSearch,
|
||||
title: 'UI|Sidebar/SidebarSearch',
|
||||
decorators: [
|
||||
(storyFn: any) => (
|
||||
|
@ -5,7 +5,7 @@ import SidebarStories from './SidebarStories';
|
||||
import { mockDataset } from './treeview/treeview.mockdata';
|
||||
|
||||
export default {
|
||||
Component: SidebarStories,
|
||||
component: SidebarStories,
|
||||
title: 'UI|Sidebar/SidebarStories',
|
||||
decorators: [s => <Spaced>{s()}</Spaced>],
|
||||
excludeStories: /.*Data$/,
|
||||
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||
import SettingsFooter from './SettingsFooter';
|
||||
|
||||
export default {
|
||||
Component: SettingsFooter,
|
||||
component: SettingsFooter,
|
||||
title: 'UI|Settings/SettingsFooter',
|
||||
decorators: [storyFn => <div style={{ width: '600px', margin: '2rem auto' }}>{storyFn()}</div>],
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user