Skip to content

Commit

Permalink
Merge pull request #24506 from WouterK12/next
Browse files Browse the repository at this point in the history
Doc Blocks: Remove `defaultProps` in `Stories` block
  • Loading branch information
JReinhold committed Oct 19, 2023
2 parents de82e37 + bc80aeb commit 91d4c5d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions code/ui/blocks/src/blocks/Stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const StyledHeading: typeof Heading = styled(Heading)(({ theme }) => ({
},
}));

export const Stories: FC<StoriesProps> = ({ title, includePrimary = true }) => {
export const Stories: FC<StoriesProps> = ({ title = 'Stories', includePrimary = true }) => {
const { componentStories } = useContext(DocsContext);

let stories = componentStories().filter((story) => !story.parameters?.docs?.disable);
Expand All @@ -46,7 +46,3 @@ export const Stories: FC<StoriesProps> = ({ title, includePrimary = true }) => {
</>
);
};

Stories.defaultProps = {
title: 'Stories',
};

0 comments on commit 91d4c5d

Please sign in to comment.