From 8d7a3c0e81c3e7e8390bec25a9c4b792821e7f4a Mon Sep 17 00:00:00 2001 From: 11t518s <11t518s20161759@gmail.com> Date: Thu, 31 Mar 2022 16:35:05 +0900 Subject: [PATCH] =?UTF-8?q?QA:=20=EC=B2=B4=ED=81=AC=EB=A6=AC=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=EC=8A=AC=EB=9D=BC=EC=9D=B4=EB=93=9C=20=EC=99=BC?= =?UTF-8?q?=EC=AA=BD=EC=97=90=EC=84=9C=20=EC=98=A4=EB=A5=B8=EC=AA=BD?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EC=8A=AC=EB=9D=BC=EC=9D=B4=EB=93=9C=20?= =?UTF-8?q?=EA=B8=88=EC=A7=80=20#70?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CheckListComponent/CheckListComponent.tsx | 4 ++++ components/CheckListComponent/CheckListImage.tsx | 1 - .../Main/StackNavigation/StackNavigationOfCheckList.tsx | 9 +++++---- 3 files changed, 9 insertions(+), 5 deletions(-) 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); }