@@ -9,19 +9,26 @@ import AppScreenWithSafeArea from '@/common/components/AppScreenWithSafeArea';
99import Chip from '@/common/components/Chip' ;
1010import SelectButton from '@/common/components/SelectButton' ;
1111import TestAPIButton from '@/common/components/TestAPIButton' ;
12+ import useGetIsLogin from '@/common/hooks/apis/useGetIsLogin' ;
1213
1314const HomePage : ActivityComponentType = ( ) => {
1415 const { push } = useFlow ( ) ;
16+ const { data : isLogin } = useGetIsLogin ( ) ;
1517 const [ active , setActive ] = useState ( false ) ;
18+
1619 return (
1720 < AppScreenWithSafeArea >
18- < h1 className = { s . Title } > ๋ฆฌํผ์นด ์งฑ</ h1 >
19- < h1 className = { s . Title } > ์ ์ฌ๋ฐ๋ค</ h1 >
20- < div className = { s . LoginBtn } >
21- < a href = { `${ import . meta. env . VITE_API_URL } /oauth2/authorization/kakao` } > ์นด์นด์คํก ๋ก๊ทธ์ธ</ a >
22- < a href = { `${ import . meta. env . VITE_API_URL } /oauth2/authorization/google` } > ๊ตฌ๊ธ ๋ก๊ทธ์ธ</ a >
23- < i className = { s . Container } > ๋ฐฑ์๋์๋ชฝ ๋ก๊ทธ์ธ ๊ณ ์ณ์ค</ i >
24- < TestAPIButton />
21+ < div className = { s . Wrapper } >
22+ < h1 className = { s . Title } > ๋ฆฌํผ์นด ์งฑ</ h1 >
23+ < h1 className = { s . Title } > ์ ์ฌ๋ฐ๋ค</ h1 >
24+ { isLogin ? (
25+ < TestAPIButton />
26+ ) : (
27+ < div className = { s . LoginBtn } >
28+ < a href = { `${ import . meta. env . VITE_API_URL } /oauth2/authorization/kakao` } > ์นด์นด์คํก ๋ก๊ทธ์ธ</ a >
29+ < a href = { `${ import . meta. env . VITE_API_URL } /oauth2/authorization/google` } > ๊ตฌ๊ธ ๋ก๊ทธ์ธ</ a >
30+ </ div >
31+ ) }
2532 < button onClick = { ( ) => push ( 'PostPage' , { } ) } > ์ด๋</ button >
2633 </ div >
2734 < Chip color = "main" > ์ถ๊ตฌ</ Chip >
0 commit comments