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

@ -44,7 +44,7 @@ import {
FAVOURITED_STATUSES_EXPAND_SUCCESS,
} from '../actions/favourites';
import { STORE_HYDRATE } from '../actions/store';
import Immutable from 'immutable';
import { Map as ImmutableMap, fromJS } from 'immutable';
const normalizeAccount = (state, account) => {
account = { ...account };
@ -53,7 +53,7 @@ const normalizeAccount = (state, account) => {
delete account.following_count;
delete account.statuses_count;
return state.set(account.id, Immutable.fromJS(account));
return state.set(account.id, fromJS(account));
};
const normalizeAccounts = (state, accounts) => {
@ -82,7 +82,7 @@ const normalizeAccountsFromStatuses = (state, statuses) => {
return state;
};
const initialState = Immutable.Map();
const initialState = ImmutableMap();
export default function accounts(state = initialState, action) {
switch(action.type) {