diff --git a/src/components/LetterDetailPage/Delete/DeleteModal.tsx b/src/components/LetterDetailPage/Delete/DeleteModal.tsx index 3a5911f..20a46e0 100644 --- a/src/components/LetterDetailPage/Delete/DeleteModal.tsx +++ b/src/components/LetterDetailPage/Delete/DeleteModal.tsx @@ -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: () => { diff --git a/src/components/LetterDetailPage/Report/ReportModal.tsx b/src/components/LetterDetailPage/Report/ReportModal.tsx index 255c5db..ac29ed8 100644 --- a/src/components/LetterDetailPage/Report/ReportModal.tsx +++ b/src/components/LetterDetailPage/Report/ReportModal.tsx @@ -87,7 +87,7 @@ export const ReportModal = ({ closeModal }: ReportModalProps) => { '지도 답장이 성공적으로 신고되었습니다.', 'success' ); - navigate('/storage/map'); + navigate('/storage?type=map'); }, onError: () => { addToast('이미 신고가 접수되었습니다.', 'error'); @@ -115,7 +115,7 @@ export const ReportModal = ({ closeModal }: ReportModalProps) => { '키워드 편지가 성공적으로 신고되었습니다.', 'success' ); - navigate('/storage/keyword'); + navigate('/storage?type=keyword'); }, onError: () => { addToast('이미 신고가 접수되었습니다.', 'error'); @@ -129,7 +129,7 @@ export const ReportModal = ({ closeModal }: ReportModalProps) => { '키워드 답장이 성공적으로 신고되었습니다.', 'success' ); - navigate('/storage/keyword'); + navigate('storage?type=keyword'); }, onError: () => { addToast('이미 신고가 접수되었습니다.', 'error');