diff --git a/components/CheckListComponent/CheckListComponent.tsx b/components/CheckListComponent/CheckListComponent.tsx index bf760bd..e3b4872 100644 --- a/components/CheckListComponent/CheckListComponent.tsx +++ b/components/CheckListComponent/CheckListComponent.tsx @@ -47,6 +47,10 @@ function CheckListComponent({ const panGesture = useAnimatedGestureHandler({ onActive: (event) => { translateX.value = event.translationX; + console.log(event.translationX); + if (event.translationX > 0) { + return; + } }, onEnd: () => { const shouldBeDismissed = translateX.value > -40; diff --git a/components/CheckListComponent/CheckListImage.tsx b/components/CheckListComponent/CheckListImage.tsx index 73e73e4..f57f3ee 100644 --- a/components/CheckListComponent/CheckListImage.tsx +++ b/components/CheckListComponent/CheckListImage.tsx @@ -33,7 +33,6 @@ function CheckListImage({ checkList, setModal, modal, order }: IProps) { setModal ? setModal(false) : null; } }; - console.log(checkList); const renderItem = ({ item }: any) => { return ( diff --git a/navigation/Main/StackNavigation/StackNavigationOfCheckList.tsx b/navigation/Main/StackNavigation/StackNavigationOfCheckList.tsx index fc7b545..3cc6368 100644 --- a/navigation/Main/StackNavigation/StackNavigationOfCheckList.tsx +++ b/navigation/Main/StackNavigation/StackNavigationOfCheckList.tsx @@ -46,15 +46,16 @@ function CheckListStackNav({ setIsLogin }: IProps) { }; const onSubmitHandler = async () => { + console.log(checkListContext?.choseCheckListByServer); try { - await axios.put( - `/api/check-list/${checkListContext?.checkListId}/common/question`, - checkListContext?.choseCheckListByServer - ); await axios.put( `/api/check-list/${checkListContext?.checkListId}/common/question/status`, checkListContext?.deletedCheckListByServer ); + await axios.put( + `/api/check-list/${checkListContext?.checkListId}/common/question`, + checkListContext?.choseCheckListByServer + ); } catch (error) { console.error(error); }