0
0
Fork 0

refactor: Rewrite immutablejs import statements using destructuring (#4147)

This commit is contained in:
Sorin Davidoi 2017-07-11 01:00:14 +02:00 committed by Eugen Rochko
parent 7bacdd718a
commit cc68d1945b
28 changed files with 141 additions and 141 deletions

View file

@ -3,14 +3,14 @@ import {
ALERT_DISMISS,
ALERT_CLEAR,
} from '../actions/alerts';
import Immutable from 'immutable';
import { Map as ImmutableMap, List as ImmutableList } from 'immutable';
const initialState = Immutable.List([]);
const initialState = ImmutableList([]);
export default function alerts(state = initialState, action) {
switch(action.type) {
case ALERT_SHOW:
return state.push(Immutable.Map({
return state.push(ImmutableMap({
key: state.size > 0 ? state.last().get('key') + 1 : 0,
title: action.title,
message: action.message,