Remove displayName parameter

This commit is contained in:
Michael Shilman 2019-11-11 22:02:32 +08:00
parent 87707dccbb
commit 3de9ab04a7
2 changed files with 2 additions and 5 deletions

View File

@ -93,7 +93,7 @@ const DocsStory: FunctionComponent<DocsStoryProps> = ({
parameters,
}) => (
<Anchor storyId={id}>
{expanded && <StoryHeading>{(parameters && parameters.displayName) || name}</StoryHeading>}
{expanded && <StoryHeading>{name}</StoryHeading>}
{expanded && parameters && parameters.docs && parameters.docs.storyDescription && (
<Description markdown={parameters.docs.storyDescription} />
)}

View File

@ -135,9 +135,6 @@ const SidebarItem = ({
iconName = 'folder';
}
// eslint-disable-next-line react/destructuring-assignment
const displayName = (props.parameters && props.parameters.displayName) || name;
return (
<Item
isSelected={isSelected}
@ -146,7 +143,7 @@ const SidebarItem = ({
>
<Expander className="sidebar-expander" isExpandable={!isLeaf} isExpanded={isExpanded} />
<Icon className="sidebar-svg-icon" icon={iconName} isSelected={isSelected} />
<span>{displayName}</span>
<span>{name}</span>
</Item>
);
};