Skip to content

Commit 4936cd8

Browse files
authored
Merge pull request #518 from meowzip/reese
fix: 고양이 등록 후 일지 페이지 이동 전 모달 닫기 위한 router.back추가
2 parents 9a6678d + 5b8e35f commit 4936cd8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/zip/CatRegisterComplete.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ export default function CatRegisterComplete({
1414
}: SignInMainProps) {
1515
const router = useRouter();
1616
const handleMoveToDiaryWrite = () => {
17-
router.push('/diary');
17+
router.back();
18+
setTimeout(() => {
19+
router.push('/diary/write');
20+
}, 300);
1821
};
1922

2023
return (

0 commit comments

Comments
 (0)