Move left pane entirely to React
This commit is contained in:
parent
bf904ddd12
commit
b3ac1373fa
142 changed files with 5016 additions and 3428 deletions
25
ts/state/reducer.ts
Normal file
25
ts/state/reducer.ts
Normal file
|
@ -0,0 +1,25 @@
|
|||
import { combineReducers } from 'redux';
|
||||
|
||||
import { reducer as search, SearchStateType } from './ducks/search';
|
||||
import {
|
||||
ConversationsStateType,
|
||||
reducer as conversations,
|
||||
} from './ducks/conversations';
|
||||
import { reducer as user, UserStateType } from './ducks/user';
|
||||
|
||||
export type StateType = {
|
||||
search: SearchStateType;
|
||||
conversations: ConversationsStateType;
|
||||
user: UserStateType;
|
||||
};
|
||||
|
||||
export const reducers = {
|
||||
search,
|
||||
conversations,
|
||||
user,
|
||||
};
|
||||
|
||||
// Making this work would require that our reducer signature supported AnyAction, not
|
||||
// our restricted actions
|
||||
// @ts-ignore
|
||||
export const reducer = combineReducers(reducers);
|
Loading…
Add table
Add a link
Reference in a new issue