Norbert de Langen da961dc508 FIX linting
2017-06-03 21:06:48 +02:00

16 lines
426 B
JavaScript

import { storiesOf } from '@storybook/react';
import implementations from './implementations';
const storyGroups = {};
Object.keys(implementations).forEach(key => {
const [groupName, itemName] = key.split('.');
const implementation = implementations[key];
if (!storyGroups[groupName]) {
storyGroups[groupName] = storiesOf(groupName, module);
}
storyGroups[groupName].add(itemName, () => implementation);
});