Migration du client sur Typescript
This commit is contained in:
13
client/src/store/actions/kanboards.ts
Normal file
13
client/src/store/actions/kanboards.ts
Normal file
@ -0,0 +1,13 @@
|
||||
export const BUILD_KANBOARD_REQUEST = "BUILD_KANBOARD_REQUEST";
|
||||
export const BUILD_KANBOARD_SUCCESS = "BUILD_KANBOARD_SUCCESS";
|
||||
export const BUILD_KANBOARD_FAILURE = "BUILD_KANBOARD_FAILURE";
|
||||
|
||||
export function buildKanboard(board: string) {
|
||||
return { type: BUILD_KANBOARD_REQUEST, board };
|
||||
};
|
||||
|
||||
export const MOVE_CARD = "MOVE_CARD";
|
||||
|
||||
export function moveCard(boardID: string, fromLaneID: string, fromPosition: any, toLaneID: any, toPosition: any) {
|
||||
return { type: MOVE_CARD, boardID, fromLaneID, fromPosition, toLaneID, toPosition };
|
||||
};
|
Reference in New Issue
Block a user