From 683d8e7b2d69bc1f09bb4f139e374937cbc6fbe4 Mon Sep 17 00:00:00 2001 From: WouterK12 Date: Wed, 18 Oct 2023 19:58:58 +0200 Subject: [PATCH] Remove Stories use defaultProps (#24305) --- code/ui/blocks/src/blocks/Stories.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/code/ui/blocks/src/blocks/Stories.tsx b/code/ui/blocks/src/blocks/Stories.tsx index 71a24eaac41a..5a0b71baf8b7 100644 --- a/code/ui/blocks/src/blocks/Stories.tsx +++ b/code/ui/blocks/src/blocks/Stories.tsx @@ -26,7 +26,7 @@ const StyledHeading: typeof Heading = styled(Heading)(({ theme }) => ({ }, })); -export const Stories: FC = ({ title, includePrimary = true }) => { +export const Stories: FC = ({ title = 'Stories', includePrimary = true }) => { const { componentStories } = useContext(DocsContext); let stories = componentStories().filter((story) => !story.parameters?.docs?.disable); @@ -46,7 +46,3 @@ export const Stories: FC = ({ title, includePrimary = true }) => { ); }; - -Stories.defaultProps = { - title: 'Stories', -};