diff --git a/src/components/Sidebar/SidebarContent/index.tsx b/src/components/Sidebar/SidebarContent/index.tsx index 3b087b88..ae673cd7 100644 --- a/src/components/Sidebar/SidebarContent/index.tsx +++ b/src/components/Sidebar/SidebarContent/index.tsx @@ -10,6 +10,7 @@ import { MdOutlineLogout } from 'react-icons/md'; import { useGetSideBarInfoQuery } from '@/app/api/member'; import { defaultUserAtom, myTeamAtom, userAtom } from '@/atom'; +import GoogleLoginButton from '@/containers/main/GoogleLoginButton'; import TeamModal from '@/containers/team/TeamModal'; import useGetUser from '@/hooks/useGetUser'; @@ -74,12 +75,16 @@ const SidebarContent = ({ isOpen, setIsOpen }: SidebarContentProps) => { {user?.isLogin ? sidebarInfo?.body?.name : '비회원'} )} - - {/* TODO: 기능 완료하고 주석 풀기 */} - {/* } onClick={() => {}} /> - } onClick={() => {}} /> */} - } onClick={handleLogOutButtonClick} /> - + {user?.isLogin ? ( + + {/* TODO: 기능 완료하고 주석 풀기 */} + {/* } onClick={() => {}} /> + } onClick={() => {}} /> */} + } onClick={handleLogOutButtonClick} /> + + ) : ( + isOpen && + )} {isOpen && user?.isLogin && ( <> diff --git a/src/containers/main/GoogleLoginButton/index.tsx b/src/containers/main/GoogleLoginButton/index.tsx index fd33a97f..3e903959 100644 --- a/src/containers/main/GoogleLoginButton/index.tsx +++ b/src/containers/main/GoogleLoginButton/index.tsx @@ -21,7 +21,7 @@ const GoogleLoginButton = () => { bgColor="transparent" href={GOOGLE_LOGIN_URL} > - google_sign_in + google_sign_in ); };