Skip to content

Commit

Permalink
refactor : 토큰 설정하는동안 Loading화면 띄우기
Browse files Browse the repository at this point in the history
  • Loading branch information
guesung committed Oct 3, 2023
1 parent a76db33 commit 238f345
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { useRouter } from 'next/navigation';

import { useRegisterQuery } from '@/apis';
import { Loading } from '@/components/Loading';
import { setCookie } from '@/utils/cookieController';

interface LoginSectionProps {
Expand All @@ -18,5 +19,5 @@ export default function LoginSection({ code }: LoginSectionProps) {
setCookie('refreshToken', refreshToken);
router.replace('/menu');

return <div></div>;
return <Loading />;
}

0 comments on commit 238f345

Please sign in to comment.