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 b7f21bb4..3c5182ce 100644 --- a/src/pages/SteppingStone/SteppingLayout.tsx +++ b/src/pages/SteppingStone/SteppingLayout.tsx @@ -39,7 +39,6 @@ function SteppingLayout({ steppingType }: SteppingProps) { ); const handlePopstate = () => { - alert('handle 작동'); navigate('/'); }; @@ -49,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/createMeeting/components/useFunnel/SetTimes.tsx b/src/pages/createMeeting/components/useFunnel/SetTimes.tsx index 1612a9b8..0a79fe03 100644 --- a/src/pages/createMeeting/components/useFunnel/SetTimes.tsx +++ b/src/pages/createMeeting/components/useFunnel/SetTimes.tsx @@ -71,8 +71,9 @@ function SetTimes({ meetingInfo, setMeetingInfo, setStep }: FunnelProps) { meetingInfo.preferTimes.length >= 2 || (meetingInfo.preferTimes[0].startTime !== '00:00' && meetingInfo.preferTimes[0].endTime !== '00:00') - ) + ) { return true; + } return false; }; @@ -180,13 +181,7 @@ function SetTimes({ meetingInfo, setMeetingInfo, setStep }: FunnelProps) {