Upgrade Prettier to 2.4.1
This commit is contained in:
parent
f204784afe
commit
5619eeca83
176 changed files with 1961 additions and 2465 deletions
|
@ -6,20 +6,21 @@ import type { Middleware } from 'redux';
|
|||
|
||||
import { COLORS_CHANGED, COLOR_SELECTED } from '../state/ducks/conversations';
|
||||
|
||||
export const dispatchItemsMiddleware: Middleware = ({
|
||||
getState,
|
||||
}) => next => action => {
|
||||
const result = next(action);
|
||||
if (
|
||||
action.type === 'items/PUT' ||
|
||||
action.type === 'items/PUT_EXTERNAL' ||
|
||||
action.type === 'items/REMOVE' ||
|
||||
action.type === 'items/REMOVE_EXTERNAL' ||
|
||||
action.type === 'items/RESET' ||
|
||||
action.type === COLOR_SELECTED ||
|
||||
action.type === COLORS_CHANGED
|
||||
) {
|
||||
ipcRenderer.send('preferences-changed', getState().items);
|
||||
}
|
||||
return result;
|
||||
};
|
||||
export const dispatchItemsMiddleware: Middleware =
|
||||
({ getState }) =>
|
||||
next =>
|
||||
action => {
|
||||
const result = next(action);
|
||||
if (
|
||||
action.type === 'items/PUT' ||
|
||||
action.type === 'items/PUT_EXTERNAL' ||
|
||||
action.type === 'items/REMOVE' ||
|
||||
action.type === 'items/REMOVE_EXTERNAL' ||
|
||||
action.type === 'items/RESET' ||
|
||||
action.type === COLOR_SELECTED ||
|
||||
action.type === COLORS_CHANGED
|
||||
) {
|
||||
ipcRenderer.send('preferences-changed', getState().items);
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue