오늘은 (6) 월 (17) 일 / 날씨: ()
한줄:
8 to 17
API 테스트
공통코드 value 여쭤보기...!
백엔드 부장님 휴가가셔서..잠깐 스톱😅
Every Morning / Every Evening
const onDragEnd = (info) =>{
const {destination,draggableId,source} =info;
if(!destination) return;
//source board 와 destination board 가 같은지 체크
if(destination?.droppableId === source.droppableId{
//same board movement. 같은 보드 내 움직임
setToDos((allBoards)=>{
const boardCopy = [...oldToDos[source.droppableId]];
boardCopy.splice(source.index, 1);
boardCopy.splice(destination?.index,0,draggableId);
return {...allBoards, [source.droppableId]: boardCopy}
})
}
//different board movement (cross board movement) 다른 보드 간 움직임
if(destination.droppableId !==source.droppableId){
setToDos((allBoards)=>{
const sourceBoard = [...allBoards[source.droppableId]];
const destinationBoard= [...allBoards[destination.droppableId]];
sourceBoard.splice(source.index,1);
destinationBoard.splice(destination?.index,0,draggableId);
return {...allBoards, [source.droppableId]: sourceBoard}, [destination.droppableId]: destinationBoard}
})
}
Monday/ Wednesday(Tuesday)/ Thursday (Clarisse랑 날짜 조정하기)
Tuesday / Thursday 21 to 22
Saturday 20 to 22
Free time