From 1e144bdcf5160259d92699b9ca3b525a2d9ee199 Mon Sep 17 00:00:00 2001 From: Ubinquitous Date: Mon, 4 Mar 2024 19:54:42 +0900 Subject: [PATCH] chore : img tag --- src/@modal/layouts/LoginModal.tsx | 3 ++- src/templates/post/layouts/detail/SectionBox.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/@modal/layouts/LoginModal.tsx b/src/@modal/layouts/LoginModal.tsx index f9d16059..5876ec5b 100644 --- a/src/@modal/layouts/LoginModal.tsx +++ b/src/@modal/layouts/LoginModal.tsx @@ -11,7 +11,8 @@ const LoginModal = () => { const handleLoginButtonClick = () => { if (isWindow) { - router.push(process.env.NEXT_PUBLIC_OAUTH_URL || ROUTER.HOME); + window.open(process.env.NEXT_PUBLIC_OAUTH_URL || ROUTER.HOME); + // router.push(process.env.NEXT_PUBLIC_OAUTH_URL || ROUTER.HOME); } }; diff --git a/src/templates/post/layouts/detail/SectionBox.tsx b/src/templates/post/layouts/detail/SectionBox.tsx index b90e2401..62366e81 100644 --- a/src/templates/post/layouts/detail/SectionBox.tsx +++ b/src/templates/post/layouts/detail/SectionBox.tsx @@ -74,7 +74,7 @@ const StyledAnchor = styled(Link)` text-decoration: underline; `; -const StyledImage = styled(Image)` +const StyledImage = styled.img` width: 50%; height: auto; `;