refactor: Rewrite immutablejs import statements using destructuring (#4147)
This commit is contained in:
		
				
					committed by
					
						
						Eugen Rochko
					
				
			
			
				
	
			
			
			
						parent
						
							7bacdd718a
						
					
				
				
					commit
					cc68d1945b
				
			@@ -1,5 +1,5 @@
 | 
			
		||||
import api, { getLinks } from '../api';
 | 
			
		||||
import Immutable from 'immutable';
 | 
			
		||||
import { List as ImmutableList } from 'immutable';
 | 
			
		||||
import IntlMessageFormat from 'intl-messageformat';
 | 
			
		||||
import { fetchRelationships } from './accounts';
 | 
			
		||||
import { defineMessages } from 'react-intl';
 | 
			
		||||
@@ -124,7 +124,7 @@ export function refreshNotificationsFail(error, skipLoading) {
 | 
			
		||||
 | 
			
		||||
export function expandNotifications() {
 | 
			
		||||
  return (dispatch, getState) => {
 | 
			
		||||
    const items  = getState().getIn(['notifications', 'items'], Immutable.List());
 | 
			
		||||
    const items  = getState().getIn(['notifications', 'items'], ImmutableList());
 | 
			
		||||
 | 
			
		||||
    if (getState().getIn(['notifications', 'isLoading']) || items.size === 0) {
 | 
			
		||||
      return;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user