Skip to content

Commit

Permalink
fix: router 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
alswlfl29 committed Jul 1, 2024
1 parent accac7f commit 5be8d0d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/components/organisms/LessonSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export const LessonSlider = ({ data, show, option }: IProps) => {
const handleConfirm = (reservation_id: number) => {
console.log(reservation_id);
// reservation_id 값으로 예약 취소 api 요청
openModal('예약이 취소되었습니다', () => navigate('/my-lesson-list'));
openModal('예약이 취소되었습니다', () =>
navigate('/mypage/my-lesson-list')
);
};

const handleReportConfirm = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/openLesson/RegisterLesson.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export const RegisterLesson = () => {
message={!isSend ? '등록' : '완료'}
isActive={isBtnActive}
onClick={() => {
!isSend ? handlePostAddLesson() : navigate('/mypage');
!isSend ? handlePostAddLesson() : navigate('/mypage/host');
}}
/>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/search/PayLesson.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export const PayLesson = () => {
message={!isSend ? '다음' : '완료'}
isActive={!isSend ? activeBtn : true}
onClick={() => {
!isSend ? setShowModal(true) : navigate('/my-lesson-list');
!isSend ? setShowModal(true) : navigate('/mypage/my-lesson-list');
}}
/>
</>
Expand Down

0 comments on commit 5be8d0d

Please sign in to comment.