feat: confirm modals on deleting

This commit is contained in:
2025-08-08 15:32:56 +04:00
parent afad1b4605
commit d3febcdfb0
6 changed files with 52 additions and 24 deletions

View File

@ -20,7 +20,7 @@ type BoardsContextState = {
refetchBoards: () => void;
onCreateBoard: (name: string) => void;
onUpdateBoard: (boardId: number, board: UpdateBoardSchema) => void;
onDeleteBoard: (boardId: number) => void;
onDeleteBoard: (board: BoardSchema) => void;
};
const BoardsContext = createContext<BoardsContextState | undefined>(undefined);

View File

@ -28,7 +28,7 @@ type StatusesContextState = {
refetchStatuses: () => void;
onCreateStatus: (name: string) => void;
onUpdateStatus: (statusId: number, status: UpdateStatusSchema) => void;
onDeleteStatus: (statusId: number) => void;
onDeleteStatus: (status: StatusSchema) => void;
};
const StatusesContext = createContext<StatusesContextState | undefined>(