diff --git a/src/components/TestComponents.tsx b/src/components/TestComponents.tsx deleted file mode 100644 index 4c4b3f2c..00000000 --- a/src/components/TestComponents.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import { useEffect, useState } from 'react'; - -import { HostAvailableSchduleRequestType } from 'src/types/createAvailableSchduleType'; -import styled from 'styled-components'; -import { hostAvailableApi } from 'utils/apis/createHostAvailableSchedule'; - -const TestComponents = () => { - const [apiData, setApiData] = useState([ - { - id: '1', - month: '07', - day: '06', - dayOfWeek: '목', - startTime: '09:00', - endTime: '11:00', - priority: 1, - }, - ]); - const meetingId = 'MTEy'; - - console.log(apiData); - const apiTest = async () => { - try { - const { data } = await hostAvailableApi(meetingId, apiData); - console.log(data); - } catch (e) { - console.log(e); - } - }; - apiTest(); - useEffect(() => {}, []); - - return test; -}; - -const TestComponentsWrapper = styled.div` - width: 10rem; - height: 10rem; - color: white; -`; - -export default TestComponents; diff --git a/src/components/atomComponents/PasswordInput.tsx b/src/components/atomComponents/PasswordInput.tsx index 619782b9..20680980 100644 --- a/src/components/atomComponents/PasswordInput.tsx +++ b/src/components/atomComponents/PasswordInput.tsx @@ -16,7 +16,6 @@ function PasswordInput({ value, placeholder, passWordOnChange, page }: ValueProp const [inputType, setInputType] = useState(true); const changePasswordType = () => { - console.log(inputType); setInputType((prev) => !prev); }; return ( diff --git a/src/components/scheduleComponents/components/PriorityDropdown.tsx b/src/components/scheduleComponents/components/PriorityDropdown.tsx index b6f2e576..418a2a1c 100644 --- a/src/components/scheduleComponents/components/PriorityDropdown.tsx +++ b/src/components/scheduleComponents/components/PriorityDropdown.tsx @@ -81,12 +81,6 @@ function PriorityDropdown() { handleDropdown(i); }; - // useEffect( - // () => { - // console.log(input_); - // }, - // [input_], - // ); return ( {scheduleList.map( diff --git a/src/pages/ComponentTesting.tsx b/src/pages/ComponentTesting.tsx index 22e52d43..150a002c 100644 --- a/src/pages/ComponentTesting.tsx +++ b/src/pages/ComponentTesting.tsx @@ -114,7 +114,7 @@ function ComponentTesting() { {buttonType.map((type, i) => { return ( - ); diff --git a/src/pages/OverallSchedule/OverallSchedule.tsx b/src/pages/OverallSchedule/OverallSchedule.tsx index 114487aa..2f69658f 100644 --- a/src/pages/OverallSchedule/OverallSchedule.tsx +++ b/src/pages/OverallSchedule/OverallSchedule.tsx @@ -44,7 +44,6 @@ const OverallSchedule = () => { const result = await overallScheduleApi(meetingId); const { data } = result.data; const uniqueData = [...new Set(data.totalUserNames)]; - console.log(uniqueData); setOverallScheduleData(data); setMemberCount(data.memberCount); setTotalUserNames(uniqueData); @@ -61,9 +60,6 @@ const OverallSchedule = () => { const formattedAvailableDateTimes = overallScheduleData && getFormattedAvailableDateTimes(overallScheduleData); -console.log(timeSlotUserNames); -console.log(formattedAvailableDateTimes); -console.log(timeSlotUserNames); return ( {overallScheduleData ? ( diff --git a/src/pages/OverallSchedule/components/Column.tsx b/src/pages/OverallSchedule/components/Column.tsx index 9f59786e..91085345 100644 --- a/src/pages/OverallSchedule/components/Column.tsx +++ b/src/pages/OverallSchedule/components/Column.tsx @@ -30,7 +30,6 @@ const Column = (props: ColumnProps) => { } = props; const handleSlotClick = () => { - console.log(filterUserNames(userNames)); setTimeSlotUserName(userNames); setClickedTimeSlot(rowIdx + timeSlot); }; diff --git a/src/pages/OverallSchedule/components/Row.tsx b/src/pages/OverallSchedule/components/Row.tsx index 7db6bffe..2ea71238 100644 --- a/src/pages/OverallSchedule/components/Row.tsx +++ b/src/pages/OverallSchedule/components/Row.tsx @@ -54,7 +54,6 @@ const Row = (props: RowProps) => { if (objArray === undefined) return; const targetObj = objArray.find((obj)=> obj.time === targetTime); if(targetObj){ - console.log(targetObj.userNames); const temp=filterUserNames(targetObj.userNames); return temp; } diff --git a/src/pages/SteppingStone/SteppingLayout.tsx b/src/pages/SteppingStone/SteppingLayout.tsx index f5d0a208..3c5182ce 100644 --- a/src/pages/SteppingStone/SteppingLayout.tsx +++ b/src/pages/SteppingStone/SteppingLayout.tsx @@ -48,14 +48,6 @@ function SteppingLayout({ steppingType }: SteppingProps) { }; }, []); - // useEffect(() => { - // history.pushState(null, '', location.href); - // console.log(location.href); - // window.onpopstate = function() { - // history.go(1); - // }; - // }, []); - return ( <> diff --git a/src/pages/selectSchedule/SelectModal.tsx b/src/pages/selectSchedule/SelectModal.tsx index 5a0a6136..993012fd 100644 --- a/src/pages/selectSchedule/SelectModal.tsx +++ b/src/pages/selectSchedule/SelectModal.tsx @@ -24,15 +24,12 @@ function SelectModal({ setShowModal }: ModalProps) { const navigate = useNavigate(); const { auth, meetingId } = useParams(); const updateScheduleType = transformHostScheduleType(scheduleList); - console.log(updateScheduleType); const updateMemberScheduleType = transformUserScheduleType(scheduleList, userName); - console.log(updateMemberScheduleType); const postHostAvailableApi = async () => { try { if (meetingId && updateScheduleType) { const { data } = await hostAvailableApi(meetingId, updateScheduleType); - console.log(data); if (data.code === 201) { setShowModal(false); navigate(`/${auth}/schedule-complete/${meetingId}`); @@ -80,14 +77,6 @@ function SelectModal({ setShowModal }: ModalProps) { } }; - useEffect( - () => { - console.log(scheduleList); - }, - [scheduleList], - ); - - // console.log(transformedScheduleList); const finishConfirm = () => { //여기에 api 연결하세요. if (auth === 'host') { diff --git a/src/pages/selectSchedule/SelectSchedulePage.tsx b/src/pages/selectSchedule/SelectSchedulePage.tsx index cb5b3066..af0f9d5e 100644 --- a/src/pages/selectSchedule/SelectSchedulePage.tsx +++ b/src/pages/selectSchedule/SelectSchedulePage.tsx @@ -102,7 +102,6 @@ function SelectSchedulePage() { priority: 0, }; setScheduleList([...scheduleList, schedule]); - console.log(scheduleList); }; const deleteDataList = (index: number) => { @@ -269,9 +268,9 @@ const StyledBtnSection = styled.section` bottom: 0; align-items: end; justify-content: center; - background: ${({ theme }) => theme.colors.dim_gradient}; - margin-top:3rem; + margin-top: 3rem; + background: ${({ theme }) => theme.colors.dim_gradient}; padding-bottom: 2.9rem; width: 100%; diff --git a/src/pages/selectSchedule/components/DateSelect.tsx b/src/pages/selectSchedule/components/DateSelect.tsx index ed7ccac3..cc9d7cce 100644 --- a/src/pages/selectSchedule/components/DateSelect.tsx +++ b/src/pages/selectSchedule/components/DateSelect.tsx @@ -19,7 +19,6 @@ function DateSelect({ id, handleDate, availableDates, scheduleList }: PropTypes) const [isOpen, setIsOpen] = useState(false); const ref = useRef(null); - console.log(id); useEffect( () => { const clickOutSide = (e: MouseEvent) => { diff --git a/src/pages/selectSchedule/utils/changeApiReq.ts b/src/pages/selectSchedule/utils/changeApiReq.ts index f23f1ebc..441f8294 100644 --- a/src/pages/selectSchedule/utils/changeApiReq.ts +++ b/src/pages/selectSchedule/utils/changeApiReq.ts @@ -9,9 +9,6 @@ export const transformHostScheduleType = ( scheduleList: ScheduleStates[], ): (HostAvailableSchduleRequestType | null)[] => { return scheduleList.map((item) => { - // const regexResult = item.date.match(/(\d+)월 (\d+)일 \((\S+)\)/); - // console.log(regexResult); - const matchedResult = item.date.match(/(\d+)월 (\d+)일 \((\S+)\)/); if (!matchedResult) { return null; // Handle the case when there is no match for the date pattern diff --git a/src/utils/apis/overallScheduleApi.ts b/src/utils/apis/overallScheduleApi.ts index 8d0c8377..f73cfe28 100644 --- a/src/utils/apis/overallScheduleApi.ts +++ b/src/utils/apis/overallScheduleApi.ts @@ -5,8 +5,7 @@ import { authClient, client } from './axios'; /** 가능 시간 입력 선택지 조회 api */ export const availbleScheduleOptionApi = (meetingId?: string) => { - const data= client.get(`/meeting/${meetingId}/schedule`); - console.log(data); + const data = client.get(`/meeting/${meetingId}/schedule`); return client.get(`/meeting/${meetingId}/schedule`); };