-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #755 from KEEPER31337/feature/도서검색에서_프로필페이지_네비게이션_…
…기능_추가_#754 Feature/도서검색에서 프로필페이지 네비게이션 기능 추가 #754
- Loading branch information
Showing
3 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
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,23 @@ | ||
import React from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import { useRecoilValue } from 'recoil'; | ||
import memberState from '@recoil/member.recoil'; | ||
import OutlinedButton from '@components/Button/OutlinedButton'; | ||
|
||
const NavigateProfileButton = () => { | ||
const userInfo = useRecoilValue(memberState); | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<OutlinedButton | ||
small | ||
onClick={() => { | ||
navigate(`/profile/${userInfo?.memberId}/book`); | ||
}} | ||
> | ||
내 서재 가기 | ||
</OutlinedButton> | ||
); | ||
}; | ||
|
||
export default NavigateProfileButton; |
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