Skip to content

Commit

Permalink
fix: storybook PropsTable block
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Mar 13, 2020
1 parent 1ce84e4 commit e136ef0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/storybook-5/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { addDecorator, addParameters } from '@storybook/react';
import { Title as SBTitle, Description as SBDescription, Subtitle as SBSubtitle, Story, Stories, Props } from '@storybook/addon-docs/blocks';
import { DependenciesTable } from 'storybook-addon-deps/blocks';
import { ControlsTable, ThemeProvider, Title, Subtitle ,Description, StorySource, ComponentSource, BlockPropsTable, BlockContextProvider } from '@component-controls/storybook';
import { ControlsTable, ThemeProvider, Title, Subtitle ,Description, StorySource, ComponentSource, PropsTable, BlockContextProvider } from '@component-controls/storybook';

addDecorator((story, ctx ) => {
return (
Expand Down Expand Up @@ -31,7 +31,7 @@ export const DocsPage = ({
<Story id="." />
<StorySource id="." title='Story source'/>
<ControlsTable id="." />
<BlockPropsTable of="." />
<PropsTable of="." />
<Props slot={propsSlot} />
<DependenciesTable titleDependencies='Dependencies' titleDependents='Dependents' />
<Stories slot={storiesSlot} />
Expand Down
8 changes: 4 additions & 4 deletions integrations/storybook/src/blocks/PropsTable.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React, { FC } from 'react';
import {
PropsTable as BasePropsTable,
PropsTableProps,
BlockPropsTable,
BlockPropsTableProps,
} from '@component-controls/blocks';
import { ThemeProvider } from '../shared/ThemeProvider';

export const PropsTable: FC<PropsTableProps> = props => {
export const PropsTable: FC<BlockPropsTableProps> = props => {
return (
<ThemeProvider>
<BasePropsTable {...props} />
<BlockPropsTable {...props} />
</ThemeProvider>
);
};

0 comments on commit e136ef0

Please sign in to comment.