Skip to content

Commit

Permalink
QA: 체크리스트 슬라이드
Browse files Browse the repository at this point in the history
왼쪽에서 오른쪽으로 슬라이드 금지
#70
  • Loading branch information
11t518s committed Mar 31, 2022
1 parent 47643da commit 8d7a3c0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions components/CheckListComponent/CheckListComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ function CheckListComponent({
const panGesture = useAnimatedGestureHandler<PanGestureHandlerGestureEvent>({
onActive: (event) => {
translateX.value = event.translationX;
console.log(event.translationX);
if (event.translationX > 0) {
return;
}
},
onEnd: () => {
const shouldBeDismissed = translateX.value > -40;
Expand Down
1 change: 0 additions & 1 deletion components/CheckListComponent/CheckListImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function CheckListImage({ checkList, setModal, modal, order }: IProps) {
setModal ? setModal(false) : null;
}
};
console.log(checkList);

const renderItem = ({ item }: any) => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8d7a3c0

Please sign in to comment.