The code powering m.abunchtell.com https://m.abunchtell.com
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
456 B

  1. import Immutable from 'immutable';
  2. import {
  3. BLOCKS_INIT_MODAL,
  4. } from '../actions/blocks';
  5. const initialState = Immutable.Map({
  6. new: Immutable.Map({
  7. account_id: null,
  8. }),
  9. });
  10. export default function mutes(state = initialState, action) {
  11. switch (action.type) {
  12. case BLOCKS_INIT_MODAL:
  13. return state.withMutations((state) => {
  14. state.setIn(['new', 'account_id'], action.account.get('id'));
  15. });
  16. default:
  17. return state;
  18. }
  19. }