File tree Expand file tree Collapse file tree 4 files changed +25
-3
lines changed Expand file tree Collapse file tree 4 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ import './index.css';
66import registerServiceWorker from './registerServiceWorker' ;
77
88ReactDOM . render (
9- < App stories = { store . getState ( ) } /> ,
9+ < App
10+ stories = { store . getState ( ) . storyState }
11+ onArchive = { ( ) => { } }
12+ /> ,
1013 document . getElementById ( 'root' )
1114) ;
1215registerServiceWorker ( ) ;
Original file line number Diff line number Diff line change 1+ const INITIAL_STATE = [ ] ;
2+
3+ function archiveReducer ( state = INITIAL_STATE , action ) {
4+ switch ( action . type ) {
5+ default : return state ;
6+ }
7+ }
8+
9+ export default archiveReducer ;
Original file line number Diff line number Diff line change 1+ import { combineReducers } from 'redux' ;
2+ import storyReducer from './story' ;
3+ import archiveReducer from './archive' ;
4+
5+ const rootReducer = combineReducers ( {
6+ storyState : storyReducer ,
7+ archiveState : archiveReducer ,
8+ } ) ;
9+
10+ export default rootReducer ;
Original file line number Diff line number Diff line change 11import { createStore } from 'redux' ;
2- import storyReducer from '../reducers/story ' ;
2+ import rootReducer from '../reducers' ;
33
44const store = createStore (
5- storyReducer
5+ rootReducer
66) ;
77
88export default store ;
You can’t perform that action at this time.
0 commit comments