Skip to content

Commit a69b9af

Browse files
committed
refactor : 편지 공유요청 승인시 트스트UI 제거
1 parent dbf33e2 commit a69b9af

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/pages/Share/index.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,7 @@ const ShareApprovalPage = () => {
2222
const handleProposalApproval = async (action: 'approve' | 'reject') => {
2323
try {
2424
await postShareProposalApproval(Number(shareProposalId), action);
25-
if (action === 'approve') {
26-
setToastActive({
27-
toastType: 'Success',
28-
title: '편지가 공유되었습니다. 게시판에서 확인해보세요!',
29-
time: 5,
30-
});
31-
} else {
25+
if (action !== 'approve') {
3226
setToastActive({
3327
toastType: 'Info',
3428
title: '공유 요청을 성공적으로 거부하였습니다.',

0 commit comments

Comments
 (0)