Skip to content

Commit

Permalink
chore : url 경로 수정 (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmjjaa authored Dec 10, 2024
1 parent 66877b8 commit c604472
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/LetterDetailPage/Delete/DeleteModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export const DeleteModal = ({ closeModal }: DeleteModalProps) => {
addToast('편지 삭제에 성공했습니다.', 'success');
navigate(
letterType === 'keyword'
? '/storage/keyword'
: '/storage/map'
? '/storage?type=keyword'
: 'storage?type=map'
);
},
onError: () => {
Expand Down
6 changes: 3 additions & 3 deletions src/components/LetterDetailPage/Report/ReportModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const ReportModal = ({ closeModal }: ReportModalProps) => {
'지도 답장이 성공적으로 신고되었습니다.',
'success'
);
navigate('/storage/map');
navigate('/storage?type=map');
},
onError: () => {
addToast('이미 신고가 접수되었습니다.', 'error');
Expand Down Expand Up @@ -115,7 +115,7 @@ export const ReportModal = ({ closeModal }: ReportModalProps) => {
'키워드 편지가 성공적으로 신고되었습니다.',
'success'
);
navigate('/storage/keyword');
navigate('/storage?type=keyword');
},
onError: () => {
addToast('이미 신고가 접수되었습니다.', 'error');
Expand All @@ -129,7 +129,7 @@ export const ReportModal = ({ closeModal }: ReportModalProps) => {
'키워드 답장이 성공적으로 신고되었습니다.',
'success'
);
navigate('/storage/keyword');
navigate('storage?type=keyword');
},
onError: () => {
addToast('이미 신고가 접수되었습니다.', 'error');
Expand Down

0 comments on commit c604472

Please sign in to comment.