Skip to content

Commit

Permalink
refactor(OAuth): 시멘틱 태그그
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubinquitous committed Apr 15, 2024
1 parent 0768e21 commit 33ad876
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/oauth/OAuth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ import { useLoginMutation } from "@/services/auth/auth.mutation";
import * as styles from "./style.css";

const OAuth = () => {
const { mutate } = useLoginMutation();
const authCode = useSearchParams().get("code") || "";
const { mutate } = useLoginMutation();

useEffect(() => {
mutate(authCode);
}, []);

return (
<main className={styles.container}>
<div className={styles.container}>
<MoonLoader size={40} color={theme.primary} />
<span className={styles.loadingText}>로그인 중...</span>
</main>
</div>
);
};

Expand Down
7 changes: 6 additions & 1 deletion app/oauth/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Suspense } from "react";
import { generateOpenGraph } from "@/utils";
import OAuth from "./OAuth";

Expand All @@ -7,7 +8,11 @@ export const metadata = generateOpenGraph({
});

const Page = () => {
return <OAuth />;
return (
<Suspense>
<OAuth />
</Suspense>
);
};

export default Page;

0 comments on commit 33ad876

Please sign in to comment.