Skip to content

Commit

Permalink
클래스 신청, 패스권 구매 컴포넌트 및 프로세스 통일
Browse files Browse the repository at this point in the history
클래스 신청, 패스권 구매 컴포넌트 및 프로세스 통일
  • Loading branch information
hyeonjun-L authored Mar 25, 2024
2 parents fe92b75 + 51b9267 commit 1704ed0
Show file tree
Hide file tree
Showing 44 changed files with 818 additions and 1,100 deletions.
3 changes: 0 additions & 3 deletions public/icons/class/wavyLine.svg

This file was deleted.

2 changes: 0 additions & 2 deletions public/icons/svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ export { default as UnreadMessageSVG } from './my/unreadMessage.svg';

export { default as UploadImageSVG } from './upload/uploadImg.svg';

export { default as WavyLineSVG } from './class/wavyLine.svg';

export { default as YoutubeSVG } from './logo/sns/youtube.svg';

export { default as ZoomInSVG } from './common/button/zoomIn.svg';
Expand Down
Binary file added public/images/fail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/wavy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions src/app/class/[id]/_components/Apply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ import { useRouter } from 'next/navigation';
import { useState, useRef } from 'react';
import { toast } from 'react-toastify';
import { useClickAway } from 'react-use';
import { formatDateTime, applyScheduleFilter } from '@/utils/parseUtils';
import SelectBox from './apply/SelectBox';
import SelectBox from './SelectBox';
import { ApplyButton } from '@/components/Button';
import { IClassSchedule, IDateTime } from '@/types/class';
import { formatDateTime, applyScheduleFilter } from '@/utils/parseUtils';

const ReservationItem = dynamic(() => import('./apply/ReservationItem'));
const ReservationItem = dynamic(
() => import('@/components/Apply/ReservationItem'),
);

interface ApplyProps {
id: string | number;
Expand Down Expand Up @@ -103,7 +105,7 @@ const Apply = (props: ApplyProps) => {
const { lectureScheduleId, count } = selectedSchedule;

router.push(
`/class/${id}/apply?lectureScheduleId=${lectureScheduleId}&count=${count}`,
`/order/class/${id}?lectureScheduleId=${lectureScheduleId}&count=${count}`,
);
};

Expand Down
12 changes: 7 additions & 5 deletions src/app/class/[id]/_components/RegularApply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import { useRouter } from 'next/navigation';
import { useState, useRef, useMemo } from 'react';
import { toast } from 'react-toastify';
import { useClickAway } from 'react-use';
import { BasicCalendarSVG, TimeSVG } from '@/icons/svg';
import { getRegularScheduleTime } from '@/utils/scheduleDateUtils';
import RegularApplyList from './apply/RegularApplyList';
import RegularApplyList from '@/components/Apply/RegularApplyList';
import { ApplyButton } from '@/components/Button';
import { IRegularClassSchedule, ISelectedSchedule } from '@/types/class';
import { BasicCalendarSVG, TimeSVG } from '@/icons/svg';
import { getRegularScheduleTime } from '@/utils/scheduleDateUtils';

const ReservationItem = dynamic(() => import('./apply/ReservationItem'));
const ReservationItem = dynamic(
() => import('@/components/Apply/ReservationItem'),
);

interface ApplyProps {
id: string | number;
Expand Down Expand Up @@ -80,7 +82,7 @@ const RegularApply = (props: ApplyProps) => {
const { id, count } = selectedSchedule;

router.push(
`/class/${lectureId}/apply?lectureScheduleId=${id}&count=${count}`,
`/order/class/${lectureId}?lectureScheduleId=${id}&count=${count}`,
);
};

Expand Down
83 changes: 0 additions & 83 deletions src/app/class/[id]/apply/_components/ApplyClassList.tsx

This file was deleted.

172 changes: 0 additions & 172 deletions src/app/class/[id]/apply/complete/page.tsx

This file was deleted.

65 changes: 0 additions & 65 deletions src/app/class/[id]/apply/loading.tsx

This file was deleted.

Loading

0 comments on commit 1704ed0

Please sign in to comment.