From fa327a4d97f63d51cd2ba4792e7663e04eadba87 Mon Sep 17 00:00:00 2001 From: Jeongjin Oh Date: Thu, 24 Oct 2024 23:25:56 +0900 Subject: [PATCH] remove console.log --- components/molecules/cards/ProfileCommentCard.tsx | 2 +- components/organisms/drawer/BottomFlexDrawer.tsx | 4 ++-- libs/study/setStudyToThumbnailInfo.ts | 2 +- pageTemplates/studyPage/StudyPageDrawer.tsx | 1 - pages/study/[id]/[date]/index.tsx | 3 +-- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/components/molecules/cards/ProfileCommentCard.tsx b/components/molecules/cards/ProfileCommentCard.tsx index dcf26512..035024ce 100644 --- a/components/molecules/cards/ProfileCommentCard.tsx +++ b/components/molecules/cards/ProfileCommentCard.tsx @@ -46,7 +46,7 @@ export default function ProfileCommentCard({ setIsCommentModal(false); setIsEdit(false); }; - console.log(rightComponent); + return ( <> diff --git a/components/organisms/drawer/BottomFlexDrawer.tsx b/components/organisms/drawer/BottomFlexDrawer.tsx index 0bdbdf7d..99ffd5ad 100644 --- a/components/organisms/drawer/BottomFlexDrawer.tsx +++ b/components/organisms/drawer/BottomFlexDrawer.tsx @@ -94,7 +94,7 @@ export default function BottomFlexDrawer({ setDrawerHeight(currentHeightRef.current); // 스와이프가 임계값보다 짧으면 원래 높이로 복원 } }; - console.log(25, isHideBottom ? "true" : "false", zIndex); + return ( <> {isOverlay && setIsModal(false)} />} @@ -153,7 +153,7 @@ const Layout = styled.div<{ border-top-right-radius: 20px; background-color: white; - z-index: ${(props) => props.zindex || (props.ishide==="true" ? 700 : 500)}; + z-index: ${(props) => props.zindex || (props.ishide === "true" ? 700 : 500)}; padding: 0 20px; padding-bottom: ${(props) => props.isdrawerup === "false" && "12px"}; padding-top: 0; diff --git a/libs/study/setStudyToThumbnailInfo.ts b/libs/study/setStudyToThumbnailInfo.ts index a013b95f..95244eeb 100644 --- a/libs/study/setStudyToThumbnailInfo.ts +++ b/libs/study/setStudyToThumbnailInfo.ts @@ -20,7 +20,7 @@ export const setStudyToThumbnailInfo = ( imageCache?: Map, ): StudyThumbnailCardProps[] => { if (!studyData) return []; - console.log(12312313, location); + // 카드 데이터 생성 const cardColData: StudyThumbnailCardProps[] = studyData.map((data, idx) => { const placeInfo = convertMergePlaceToPlace(data.place); diff --git a/pageTemplates/studyPage/StudyPageDrawer.tsx b/pageTemplates/studyPage/StudyPageDrawer.tsx index 5c78569e..89b7f941 100644 --- a/pageTemplates/studyPage/StudyPageDrawer.tsx +++ b/pageTemplates/studyPage/StudyPageDrawer.tsx @@ -45,7 +45,6 @@ function StudyPageDrawer({ const router = useRouter(); const searchParams = useSearchParams(); const newSearchParams = new URLSearchParams(searchParams); - console.log(24, isDrawerUp); const [thumbnailCardInfoArr, setThumbnailCardinfoArr] = useState(); const [selectOption, setSelectOption] = useState("인원순"); diff --git a/pages/study/[id]/[date]/index.tsx b/pages/study/[id]/[date]/index.tsx index 558f842b..707246d2 100644 --- a/pages/study/[id]/[date]/index.tsx +++ b/pages/study/[id]/[date]/index.tsx @@ -56,7 +56,6 @@ export default function Page() { studyVoteData, convertLocationLangTo(locationParam, "kr"), ); - console.log(5, studyVoteData, mergeParticipations); const mergeParticipation = mergeParticipations?.find( (participation) => participation.place._id === id, @@ -72,7 +71,7 @@ export default function Page() { const members = mergeParticipation?.members; const absences = studyVoteData?.participations.find((par) => par.place._id === id)?.absences; - console.log(1234, mergeParticipation); + return ( <> {mergeParticipation && (