Skip to content

Commit 213784c

Browse files
authored
Merge pull request #167 from part3-4team-Taskify/feature/Gnb
[Refactor] InviteDashboard: 초대 성공 시 모달 바로 닫히게 변경
2 parents 797e2cd + 6f8fa9e commit 213784c

File tree

7 files changed

+10
-9
lines changed

7 files changed

+10
-9
lines changed

src/components/card/ChangePassword.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function ChangePassword() {
4444
setIsSubmitting(false);
4545
setTimeout(() => {
4646
router.reload();
47-
}, 1700);
47+
}, 1500);
4848
};
4949

5050
return (

src/components/card/Profile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default function ProfileCard() {
5555
toast.success("프로필 변경이 완료되었습니다.");
5656
setTimeout(() => {
5757
router.reload();
58-
}, 1700);
58+
}, 1500);
5959
} catch (error) {
6060
console.error("프로필 변경 실패:", error);
6161
toast.error("프로필 변경에 실패하였습니다.");

src/components/common/CustomToastContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const CustomToastContainer = () => {
66
return (
77
<ToastContainer
88
position="top-center"
9-
autoClose={1700}
9+
autoClose={1500}
1010
closeButton={false}
1111
pauseOnHover={false}
1212
newestOnTop

src/components/modal/ChangeBebridge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const ChangeBebridge = () => {
6262
toast.success("대시보드가 변경되었습니다!");
6363
setTimeout(() => {
6464
router.reload();
65-
}, 1700);
65+
}, 1500);
6666
} catch (error) {
6767
console.error("대시보드 변경 실패:", error);
6868
toast.error("대시보드 변경에 실패했습니다.");

src/components/modal/InviteDashboard.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ export default function InviteDashboard({ onClose }: { onClose?: () => void }) {
6666
email,
6767
});
6868

69-
toast.success("초대를 성공했습니다.");
69+
toast.success("멤버 초대에 성공했습니다.");
70+
onClose?.();
7071

7172
setTimeout(() => {
7273
window.location.reload();
73-
}, 1000);
74+
}, 1500);
7475
} catch (error) {
7576
if (error instanceof AxiosError) {
7677
if (error.response?.status === 403) {

src/components/modalDashboard/CardDetailModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default function CardDetailPage({
6969

7070
setTimeout(() => {
7171
router.reload();
72-
}, 1700);
72+
}, 1500);
7373
},
7474
});
7575

src/components/table/invited/InvitedDashBoard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function InvitedList({
6565
toast.success("대시보드 수락 성공");
6666
setTimeout(() => {
6767
window.location.reload();
68-
}, 1700);
68+
}, 1500);
6969
} catch (error) {
7070
console.error("수락 실패:", error);
7171
toast.error("초대 수락에 실패했습니다");
@@ -83,7 +83,7 @@ function InvitedList({
8383
toast.success("대시보드 거절 성공");
8484
setTimeout(() => {
8585
window.location.reload();
86-
}, 1700);
86+
}, 1500);
8787
} catch (error) {
8888
console.error("거절 실패:", error);
8989
toast.error("초대 거절에 실패했습니다");

0 commit comments

Comments
 (0)