Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Jul 8, 2022
1 parent 1d81c29 commit 88561de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/blocks/src/blocks/ArgsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface BaseProps {
}

type OfProps = BaseProps & {
of: '.' | '^' | Component;
of: '^' | Component;
};

type ComponentsProps = BaseProps & {
Expand Down
2 changes: 1 addition & 1 deletion lib/blocks/src/blocks/Description.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const DescriptionContainer: FunctionComponent<DescriptionProps> = (props) => {

// since we are in the docs blocks, assume default description if for primary component story
DescriptionContainer.defaultProps = {
of: '.',
of: PRIMARY_STORY,
};

export { DescriptionContainer as Description };
1 change: 1 addition & 0 deletions lib/blocks/src/blocks/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { once } from '@storybook/client-logger';
*/
export const CURRENT_SELECTION = '.';
export const currentSelectionWarning = () =>
console.trace() ||
once.warn(
'`of="."` (current selection) is no longer supported in doc blocks. Falling back to primary story'
);
Expand Down

0 comments on commit 88561de

Please sign in to comment.