Skip to content

Commit

Permalink
Merge pull request #282 from ASAP-as-soon-as-possible/fix/#280/delete…
Browse files Browse the repository at this point in the history
…PreferTimes

[Fix/#280] 선호시간대 입력 삭제
  • Loading branch information
simeunseo authored Jul 19, 2024
2 parents 988775d + 28d0874 commit f56806d
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 287 deletions.
2 changes: 1 addition & 1 deletion src/pages/createMeeting/CreateMeeting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { MeetingInfo } from './types/useFunnelInterface';
const initialMeetingInfo: MeetingInfo = {
title: '',
availableDates: [''],
preferTimes: [{ startTime: '00:00', endTime: '00:00' }],
preferTimes: [{ startTime: '06:00', endTime: '24:00' }],
place: '',
placeDetail: '',
duration: '',
Expand Down
2 changes: 0 additions & 2 deletions src/pages/createMeeting/components/ReturnBodyComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import SetDates from './useFunnel/SetDates';
import SetDuration from './useFunnel/SetDuration';
import SetHostInfo from './useFunnel/SetHostInfo';
import SetPlace from './useFunnel/SetPlace';
import SetTimes from './useFunnel/SetTimes';
import SetTitle from './useFunnel/SetTitle';
import { MeetingInfo } from '../types/useFunnelInterface';

Expand All @@ -21,7 +20,6 @@ interface BodyProps {
const BodyType: { [key: string]: React.JSXElementConstructor<any> } = {
title: SetTitle,
availableDates: SetDates,
preferTimes: SetTimes,
place: SetPlace,
duration: SetDuration,
hostInfo: SetHostInfo,
Expand Down
5 changes: 0 additions & 5 deletions src/pages/createMeeting/components/ReturnTitleComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ const funnelSteps: FunnelSteps = {
main: '고려 중인 회의 날짜는 언제인가요?',
sub: '하나의 방식을 골라 후보 날짜를 입력해주세요',
},
preferTimes: {
main: '어느 시간대를 선호하세요?',
sub: '선호하는 회의 시간대를 모두 선택해주세요',
},
place: {
main: '회의 장소를 입력해주세요',
sub: '회의 방식과 장소를 알려주세요',
Expand All @@ -43,7 +39,6 @@ interface ReturnProps {

function ReturnTitleComponent({ step }: ReturnProps) {
const currentStep = funnelSteps[step];

return <TitleComponents main={currentStep.main} sub={currentStep.sub} />;
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/createMeeting/components/useFunnel/SetDates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function SetDates({ meetingInfo, setMeetingInfo, setStep }: FunnelProps) {
meetingInfo.availableDates.length < 8)
? () =>
setStep((prev) => {
if (prev === 6) {
if (prev === 5) {
return prev;
}
return prev + 1;
Expand Down
277 changes: 0 additions & 277 deletions src/pages/createMeeting/components/useFunnel/SetTimes.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/pages/createMeeting/data/meetingInfoData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export const timeList = [
export const funnelStep = [
'title',
'availableDates',
'preferTimes',
'place',
'duration',
'hostInfo',
Expand Down

0 comments on commit f56806d

Please sign in to comment.