2022-11-03 14:39:43 +01:00
|
|
|
import { addons } from '@storybook/preview-api';
|
2022-10-25 08:12:49 +02:00
|
|
|
import startCase from 'lodash/startCase';
|
|
|
|
|
|
|
|
addons.setConfig({
|
|
|
|
sidebar: {
|
|
|
|
renderLabel: ({ name, type }) => (type === 'story' ? name : startCase(name)),
|
|
|
|
},
|
|
|
|
});
|