-
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: 팀의 학습자료 갤러리에서 팀원일 때만 학습자료 추가 버튼이 보이도록 수정 #364 * feat: 팀의 스터디 갤러리에서 팀원 일때만 스터디 추가 버튼이 보이도록 수정 #364 * fix: 스터디 페이지로 들어가지 못하던 문제 해결 #364 * feat: 스터디의 학습자료 갤러이에서 스터디원 에게만 자료 등록 버튼 보이도록 수정 #364 * feat: 스터디의 학습자료 갤러리 팀원 또는 스터디원만 접근할 수 있도록 수정 #364 * feat: 스터디 페이지에 들어가지지 않는 문제 일단... #364 * feat: 내 스터디 id 목록 조회 방법 변경 #364 * fix: 자신의 팀인 경우에도 스터디 못 들어가는 오류 해결 #364
- Loading branch information
Showing
7 changed files
with
100 additions
and
22 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { useAtomValue } from 'jotai'; | ||
import { useEffect, useState } from 'react'; | ||
|
||
import { myTeamAtom } from '@/atom'; | ||
|
||
const useGetMyTeam = () => { | ||
const [isMounted, setIsMounted] = useState(false); | ||
const myTeam = useAtomValue(myTeamAtom); | ||
|
||
useEffect(() => { | ||
setIsMounted(true); | ||
}, []); | ||
|
||
return isMounted ? myTeam : null; | ||
}; | ||
|
||
export default useGetMyTeam; |