mirror of
https://github.com/plankanban/planka.git
synced 2025-12-29 17:25:05 +03:00
Update dependencies
This commit is contained in:
@@ -9,7 +9,7 @@ const mapStateToProps = ({ projectCreateForm: { data: defaultData, isSubmitting
|
||||
isSubmitting,
|
||||
});
|
||||
|
||||
const mapDispatchToProps = dispatch =>
|
||||
const mapDispatchToProps = (dispatch) =>
|
||||
bindActionCreators(
|
||||
{
|
||||
onCreate: createProject,
|
||||
|
||||
@@ -10,7 +10,7 @@ const mapStateToProps = ({ userCreateForm: { data: defaultData, isSubmitting, er
|
||||
error,
|
||||
});
|
||||
|
||||
const mapDispatchToProps = dispatch =>
|
||||
const mapDispatchToProps = (dispatch) =>
|
||||
bindActionCreators(
|
||||
{
|
||||
onCreate: createUser,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
|
||||
@@ -10,7 +10,7 @@ const mapStateToProps = ({ authenticateForm: { data: defaultData, isSubmitting,
|
||||
error,
|
||||
});
|
||||
|
||||
const mapDispatchToProps = dispatch =>
|
||||
const mapDispatchToProps = (dispatch) =>
|
||||
bindActionCreators(
|
||||
{
|
||||
onAuthenticate: authenticate,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user