mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 16:11:08 +08:00
Linting
This commit is contained in:
parent
67cb7dccdc
commit
7550d9945b
@ -26,7 +26,7 @@ const storyProps = [
|
||||
];
|
||||
|
||||
function hierarchyContainsStories(storiesHierarchy) {
|
||||
return storiesHierarchy && storiesHierarchy.map.size
|
||||
return storiesHierarchy && storiesHierarchy.map.size;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line react/prefer-stateless-function
|
||||
@ -50,8 +50,8 @@ class LeftPanel extends Component {
|
||||
onChange={text => onStoryFilter(text)}
|
||||
/>
|
||||
<div style={scrollStyle}>
|
||||
{hierarchyContainsStories(storiesHierarchy)
|
||||
? <Stories {...pick(this.props, storyProps)} />
|
||||
{hierarchyContainsStories(storiesHierarchy)
|
||||
? <Stories {...pick(this.props, storyProps)} />
|
||||
: null}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user