fix: 홈페이지 에러 수정
This commit is contained in:
parent
2cb13477fb
commit
b9aa255486
@ -17,7 +17,9 @@ export default function Home() {
|
|||||||
hasFetchedProfile.current = true;
|
hasFetchedProfile.current = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
const handleGoogleSignIn = () => {
|
||||||
|
window.location.href = `${BASE_URL}/api/login/oauth2/authorization/google`;
|
||||||
|
};
|
||||||
const handleReissueToken = async () => {
|
const handleReissueToken = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await reissueToken();
|
const response = await reissueToken();
|
||||||
@ -53,9 +55,19 @@ export default function Home() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{!isLoggedIn ? (
|
{!isLoggedIn ? (
|
||||||
<Link
|
// <Link
|
||||||
to={`${BASE_URL}/api/login/oauth2/authorization/google`}
|
// to={`${BASE_URL}/api/login/oauth2/authorization/google`}
|
||||||
// onClick={handleGoogleSignIn}
|
// // onClick={handleGoogleSignIn}
|
||||||
|
// className="mb-4 transition hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-gray-300 active:opacity-80"
|
||||||
|
// >
|
||||||
|
// <img
|
||||||
|
// src={GoogleLogo}
|
||||||
|
// alt="Sign in with Google"
|
||||||
|
// className="h-auto w-full"
|
||||||
|
// />
|
||||||
|
// </Link>
|
||||||
|
<button
|
||||||
|
onClick={handleGoogleSignIn}
|
||||||
className="mb-4 transition hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-gray-300 active:opacity-80"
|
className="mb-4 transition hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-gray-300 active:opacity-80"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
@ -63,7 +75,7 @@ export default function Home() {
|
|||||||
alt="Sign in with Google"
|
alt="Sign in with Google"
|
||||||
className="h-auto w-full"
|
className="h-auto w-full"
|
||||||
/>
|
/>
|
||||||
</Link>
|
</button> // 404 에러 방지
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<Button
|
<Button
|
||||||
|
Loading…
Reference in New Issue
Block a user