-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] 헤더 제작 및 ★★(중요)headerState 변경 요청★★ (#21)
* feat(#6) : 헤더에 별 컴포넌트 전체 추가 * feat(#6) : HeaderSeletedType 정의 * feat(#6) : 헤더 recoilState 설정용 enum타입 추가 * feat(#6) : Join, Profile 페이지 setHeaderState * fix(#6) : headerState 기본값 none으로 변경
- Loading branch information
Showing
7 changed files
with
129 additions
and
22 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
import kakaoLoginImageSrc from '/assets/images/header/kakaoLogin.png'; | ||
// import kakaoLoginImageSrc from '/assets/images/header/kakaoLogin.png'; | ||
|
||
export const kakao = (window as any).Kakao; | ||
|
||
|
||
export const kakaoAuthorize = () => { | ||
const redirectUri = 'http://localhost:5173/login/oauth'; | ||
kakao.Auth.authorize({ | ||
redirectUri: `${redirectUri}`, | ||
scope: 'profile_nickname,profile_image,account_email,account_email', | ||
}); | ||
}; | ||
|
||
const KakaoLogin = () => { | ||
const redirectUri = 'http://localhost:5173/login/oauth'; | ||
return ( | ||
<img | ||
src={kakaoLoginImageSrc} | ||
<div | ||
// src={kakaoLoginImageSrc} | ||
onClick={() => | ||
kakao.Auth.authorize({ | ||
redirectUri: `${redirectUri}`, | ||
scope: 'profile_nickname,profile_image,account_email,account_email', | ||
}) | ||
} | ||
></img> | ||
>마이페이지</div> | ||
); | ||
}; | ||
export default KakaoLogin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export enum Headers { | ||
none = 'none', | ||
list = 'list', | ||
myTeam = 'myTeam', | ||
login = 'login', | ||
myPage = 'myPage', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters