Update dependencies

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

View File

@@ -9,7 +9,7 @@ const mapStateToProps = ({ projectCreateForm: { data: defaultData, isSubmitting
isSubmitting,
});
const mapDispatchToProps = dispatch =>
const mapDispatchToProps = (dispatch) =>
bindActionCreators(
{
onCreate: createProject,

View File

@@ -10,7 +10,7 @@ const mapStateToProps = ({ userCreateForm: { data: defaultData, isSubmitting, er
error,
});
const mapDispatchToProps = dispatch =>
const mapDispatchToProps = (dispatch) =>
bindActionCreators(
{
onCreate: createUser,

View File

@@ -4,7 +4,7 @@ import { currentModalSelector } from '../selectors';
import ModalTypes from '../constants/ModalTypes';
import App from '../components/App';
const mapStateToProps = state => {
const mapStateToProps = (state) => {
const currentModal = currentModalSelector(state);
return {

View File

@@ -3,7 +3,7 @@ import { connect } from 'react-redux';
import { isAppInitializingSelector } from '../selectors';
import AppWrapper from '../components/AppWrapper';
const mapStateToProps = state => {
const mapStateToProps = (state) => {
const isAppInitializing = isAppInitializingSelector(state);
return {

View File

@@ -23,7 +23,7 @@ import {
} from '../actions/entry';
import Board from '../components/Board';
const mapStateToProps = state => {
const mapStateToProps = (state) => {
const { cardId } = pathSelector(state);
const allProjectMemberships = membershipsForCurrentProjectSelector(state);
const listIds = listIdsForCurrentBoardSelector(state);
@@ -41,7 +41,7 @@ const mapStateToProps = state => {
};
};
const mapDispatchToProps = dispatch =>
const mapDispatchToProps = (dispatch) =>
bindActionCreators(
{
onListCreate: createListInCurrentBoard,

View File

@@ -3,7 +3,7 @@ import { connect } from 'react-redux';
import { currentBoardSelector } from '../selectors';
import BoardWrapper from '../components/BoardWrapper';
const mapStateToProps = state => {
const mapStateToProps = (state) => {
const { isFetching } = currentBoardSelector(state);
return {

View File

@@ -5,7 +5,7 @@ import { boardsForCurrentProjectSelector, currentUserSelector, pathSelector } fr
import { createBoardInCurrentProject, deleteBoard, moveBoard, updateBoard } from '../actions/entry';
import Boards from '../components/Boards';
const mapStateToProps = state => {
const mapStateToProps = (state) => {
const { boardId } = pathSelector(state);
const { isAdmin } = currentUserSelector(state);
const boards = boardsForCurrentProjectSelector(state);
@@ -17,7 +17,7 @@ const mapStateToProps = state => {
};
};
const mapDispatchToProps = dispatch =>
const mapDispatchToProps = (dispatch) =>
bindActionCreators(
{
onCreate: createBoardInCurrentProject,

View File

@@ -61,15 +61,15 @@ const makeMapStateToProps = () => {
const mapDispatchToProps = (dispatch, { id }) =>
bindActionCreators(
{
onUpdate: data => updateCard(id, data),
onUpdate: (data) => updateCard(id, data),
onDelete: () => deleteCard(id),
onUserAdd: userId => addUserToCard(userId, id),
onUserRemove: userId => removeUserFromCard(userId, id),
onLabelAdd: labelId => addLabelToCard(labelId, id),
onLabelRemove: labelId => removeLabelFromCard(labelId, id),
onLabelCreate: data => createLabelInCurrentBoard(data),
onUserAdd: (userId) => addUserToCard(userId, id),
onUserRemove: (userId) => removeUserFromCard(userId, id),
onLabelAdd: (labelId) => addLabelToCard(labelId, id),
onLabelRemove: (labelId) => removeLabelFromCard(labelId, id),
onLabelCreate: (data) => createLabelInCurrentBoard(data),
onLabelUpdate: (labelId, data) => updateLabel(labelId, data),
onLabelDelete: labelId => deleteLabel(labelId),
onLabelDelete: (labelId) => deleteLabel(labelId),
},
dispatch,
);

View File

@@ -34,7 +34,7 @@ import {
import Paths from '../constants/Paths';
import CardModal from '../components/CardModal';
const mapStateToProps = state => {
const mapStateToProps = (state) => {
const { isAdmin } = currentUserSelector(state);
const allProjectMemberships = membershipsForCurrentProjectSelector(state);
const allLabels = labelsForCurrentBoardSelector(state);
@@ -74,7 +74,7 @@ const mapStateToProps = state => {
};
};
const mapDispatchToProps = dispatch =>
const mapDispatchToProps = (dispatch) =>
bindActionCreators(
{
onUpdate: updateCurrentCard,

View File

@@ -15,7 +15,7 @@ import {
} from '../actions/entry';
import Header from '../components/Header';
const mapStateToProps = state => {
const mapStateToProps = (state) => {
const currentUser = currentUserSelector(state);
const notifications = notificationsForCurrentUserSelector(state);
@@ -26,7 +26,7 @@ const mapStateToProps = state => {
};
};
const mapDispatchToProps = dispatch =>
const mapDispatchToProps = (dispatch) =>
bindActionCreators(
{
onUsers: openUsersModal, // TODO: rename

View File

@@ -26,9 +26,9 @@ const makeMapStateToProps = () => {
const mapDispatchToProps = (dispatch, { id }) =>
bindActionCreators(
{
onUpdate: data => updateList(id, data),
onUpdate: (data) => updateList(id, data),
onDelete: () => deleteList(id),
onCardCreate: data => createCard(id, data),
onCardCreate: (data) => createCard(id, data),
},
dispatch,
);

View File

@@ -10,7 +10,7 @@ const mapStateToProps = ({ authenticateForm: { data: defaultData, isSubmitting,
error,
});
const mapDispatchToProps = dispatch =>
const mapDispatchToProps = (dispatch) =>
bindActionCreators(
{
onAuthenticate: authenticate,

View File

@@ -15,7 +15,7 @@ import {
} from '../actions/entry';
import Project from '../components/Project';
const mapStateToProps = state => {
const mapStateToProps = (state) => {
const allUsers = allUsersSelector(state);
const { isAdmin } = currentUserSelector(state);
const { name } = currentProjectSelector(state);
@@ -29,7 +29,7 @@ const mapStateToProps = state => {
};
};
const mapDispatchToProps = dispatch =>
const mapDispatchToProps = (dispatch) =>
bindActionCreators(
{
onUpdate: updateCurrentProject,

View File

@@ -3,7 +3,7 @@ import { connect } from 'react-redux';
import { pathSelector } from '../selectors';
import ProjectWrapper from '../components/ProjectWrapper';
const mapStateToProps = state => {
const mapStateToProps = (state) => {
const { cardId, boardId, projectId } = pathSelector(state);
return {

View File

@@ -5,7 +5,7 @@ import { currentUserSelector, pathSelector, projectsForCurrentUserSelector } fro
import { openAddProjectModal } from '../actions/entry';
import Projects from '../components/Projects';
const mapStateToProps = state => {
const mapStateToProps = (state) => {
const { projectId } = pathSelector(state);
const { isAdmin } = currentUserSelector(state);
const projects = projectsForCurrentUserSelector(state);
@@ -17,7 +17,7 @@ const mapStateToProps = state => {
};
};
const mapDispatchToProps = dispatch =>
const mapDispatchToProps = (dispatch) =>
bindActionCreators(
{
onAdd: openAddProjectModal,

View File

@@ -5,7 +5,7 @@ import { allUsersExceptCurrentSelector } from '../selectors';
import { closeModal, deleteUser, updateUser } from '../actions/entry';
import UsersModal from '../components/UsersModal';
const mapStateToProps = state => {
const mapStateToProps = (state) => {
const items = allUsersExceptCurrentSelector(state);
return {
@@ -13,7 +13,7 @@ const mapStateToProps = state => {
};
};
const mapDispatchToProps = dispatch =>
const mapDispatchToProps = (dispatch) =>
bindActionCreators(
{
onUpdate: updateUser,