mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-21 12:05:07 +01:00
Update storybook file autoload (#2057)
This commit is contained in:
parent
23ecc681c4
commit
d90b1650d8
@ -14,11 +14,10 @@ window.storiesOf = storiesOf;
|
||||
window.action = action;
|
||||
window.React = React;
|
||||
|
||||
let req = require.context('./stories/', true, /.story.jsx$/);
|
||||
|
||||
function loadStories () {
|
||||
require('./stories/loading_indicator.story.jsx');
|
||||
require('./stories/button.story.jsx');
|
||||
require('./stories/character_counter.story.jsx');
|
||||
require('./stories/autosuggest_textarea.story.jsx');
|
||||
req.keys().forEach((filename) => req(filename))
|
||||
}
|
||||
|
||||
configure(loadStories, module);
|
||||
|
Loading…
Reference in New Issue
Block a user