From 4774d728f9bdfbba34227eeb793ff98280b9d88c Mon Sep 17 00:00:00 2001 From: goeun208 <80875784+goeun208@users.noreply.github.com> Date: Thu, 1 Aug 2024 18:17:55 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EC=B2=AB=ED=8E=98=EC=9D=B4=EC=A7=80=20?= =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC=EB=B7=B0=20(#101)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 모바일 뷰 작업 1차(/user, /participant, /vote/detail) * fix: prettier error * Fix: document is undefined error * Style: 출발 위치 깃발 아이콘 크기 조정 * Style: 장소 추천 높이 통일 * Feat: 푸터 링크 추가 외 2건 * Fix: 투표 페이지 data 전달 방식 변경, 선택 오류 수정, Feat: focus 시 refetch 막기 * Fix: login before page 모바일뷰 --- .../common/button/google/GoogleButton.tsx | 15 ++++++++++-- .../common/button/kakao/KakaoButton.tsx | 15 ++++++++++-- .../common/button/naver/NaverButton.tsx | 13 +++++++++- src/components/home/Home1.tsx | 24 +++++++++++++++---- src/components/home/Home2.tsx | 2 +- src/components/home/Home3.tsx | 2 +- src/pages/participant/myInfo/index.tsx | 2 +- 7 files changed, 60 insertions(+), 13 deletions(-) diff --git a/src/components/common/button/google/GoogleButton.tsx b/src/components/common/button/google/GoogleButton.tsx index 4780a03..3ecf6bd 100644 --- a/src/components/common/button/google/GoogleButton.tsx +++ b/src/components/common/button/google/GoogleButton.tsx @@ -6,13 +6,24 @@ const GoogleLoginButton = () => { const CLIENT_ID = process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID; const REDIRECT_URI = process.env.NEXT_PUBLIC_GOOGLE_REDIRECT_URI; const LINK = `https://accounts.google.com/o/oauth2/v2/auth?client_id=${CLIENT_ID}&redirect_uri=${REDIRECT_URI}&response_type=code&scope=email%20profile%20openid&access_type=offline`; + let clientWidth: any; + + if (typeof document !== 'undefined') { + clientWidth = document.documentElement.clientWidth; + } function googleLogin() { router.push(LINK); } return ( -