Update dependencies

This commit is contained in:
Maksim Eltyshev
2020-03-25 00:15:47 +05:00
parent 05adea1afd
commit de61d94a98
145 changed files with 963 additions and 1149 deletions

View File

@@ -2,7 +2,7 @@ import socket from './socket';
/* Transformers */
export const transformAction = action => ({
export const transformAction = (action) => ({
...action,
createdAt: new Date(action.createdAt),
});
@@ -10,14 +10,14 @@ export const transformAction = action => ({
/* Actions */
const getActions = (cardId, data, headers) =>
socket.get(`/cards/${cardId}/actions`, data, headers).then(body => ({
socket.get(`/cards/${cardId}/actions`, data, headers).then((body) => ({
...body,
items: body.items.map(transformAction),
}));
/* Event handlers */
const makeHandleActionCreate = next => body => {
const makeHandleActionCreate = (next) => (body) => {
next({
...body,
item: transformAction(body.item),