File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,7 +70,12 @@ function renderMain(data, storyStore) {
7070 _reactDom2 . default . unmountComponentAtNode ( rootEl ) ;
7171 }
7272
73- return _reactDom2 . default . render ( story ( ) , rootEl ) ;
73+ var context = {
74+ kind : selectedKind ,
75+ story : selectedStory
76+ } ;
77+
78+ return _reactDom2 . default . render ( story ( context ) , rootEl ) ;
7479}
7580
7681function renderPreview ( _ref ) {
Original file line number Diff line number Diff line change @@ -42,7 +42,12 @@ export function renderMain(data, storyStore) {
4242 ReactDOM . unmountComponentAtNode ( rootEl ) ;
4343 }
4444
45- return ReactDOM . render ( story ( ) , rootEl ) ;
45+ const context = {
46+ kind : selectedKind ,
47+ story : selectedStory ,
48+ } ;
49+
50+ return ReactDOM . render ( story ( context ) , rootEl ) ;
4651}
4752
4853export default function renderPreview ( { reduxStore, storyStore } ) {
You can’t perform that action at this time.
0 commit comments