mirror of
https://github.com/plankanban/planka.git
synced 2025-07-23 15:19:44 +02:00
Move from prettier-eslint to eslint-plugin-prettier, update dependencies
This commit is contained in:
parent
f0e7fb8fd1
commit
9c7c96a780
254 changed files with 5539 additions and 5170 deletions
|
@ -34,9 +34,7 @@ const makeMapStateToProps = () => {
|
|||
const allProjectMemberships = membershipsForCurrentProjectSelector(state);
|
||||
const allLabels = labelsForCurrentBoardSelector(state);
|
||||
|
||||
const {
|
||||
name, dueDate, timer, isPersisted,
|
||||
} = cardByIdSelector(state, id);
|
||||
const { name, dueDate, timer, isPersisted } = cardByIdSelector(state, id);
|
||||
|
||||
const users = usersByCardIdSelector(state, id);
|
||||
const labels = labelsByCardIdSelector(state, id);
|
||||
|
@ -60,22 +58,20 @@ const makeMapStateToProps = () => {
|
|||
};
|
||||
};
|
||||
|
||||
const mapDispatchToProps = (dispatch, { id }) => bindActionCreators(
|
||||
{
|
||||
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),
|
||||
onLabelUpdate: (labelId, data) => updateLabel(labelId, data),
|
||||
onLabelDelete: (labelId) => deleteLabel(labelId),
|
||||
},
|
||||
dispatch,
|
||||
);
|
||||
const mapDispatchToProps = (dispatch, { id }) =>
|
||||
bindActionCreators(
|
||||
{
|
||||
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),
|
||||
onLabelUpdate: (labelId, data) => updateLabel(labelId, data),
|
||||
onLabelDelete: labelId => deleteLabel(labelId),
|
||||
},
|
||||
dispatch,
|
||||
);
|
||||
|
||||
export default connect(
|
||||
makeMapStateToProps,
|
||||
mapDispatchToProps,
|
||||
)(Card);
|
||||
export default connect(makeMapStateToProps, mapDispatchToProps)(Card);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue