Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cmlim0070 committed Dec 10, 2024
2 parents e4505f1 + c604472 commit eceaa54
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 eceaa54

Please sign in to comment.