mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
use mergeOptionsList on all react components
This commit is contained in:
parent
1230ae7192
commit
8a3ff445ef
@ -1,5 +1,7 @@
|
||||
import React from 'react';
|
||||
|
||||
import { mergeOptionList } from '../utils/general_utils';
|
||||
|
||||
import EditionActions from '../actions/edition_actions';
|
||||
import EditionStore from '../stores/edition_store';
|
||||
import UserActions from '../actions/user_actions';
|
||||
@ -12,10 +14,7 @@ import Edition from './edition';
|
||||
*/
|
||||
let EditionContainer = React.createClass({
|
||||
getInitialState() {
|
||||
return {
|
||||
'user': UserStore.getState(),
|
||||
'edition': EditionStore.getState()
|
||||
};
|
||||
return mergeOptionList([UserStore.getState(), EditionStore.getState()]);
|
||||
},
|
||||
|
||||
onChange(state) {
|
||||
|
Loading…
Reference in New Issue
Block a user