-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/#364 학습자료스터디 갤러리 권환 #366
Merged
The head ref may contain hidden characters: "feature/#364-\uD559\uC2B5\uC790\uB8CC\uC2A4\uD130\uB514-\uAC24\uB7EC\uB9AC-\uAD8C\uD658"
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
742bc3a
feat: 팀의 학습자료 갤러리에서 팀원일 때만 학습자료 추가 버튼이 보이도록 수정
llddang f390df1
feat: 팀의 스터디 갤러리에서 팀원 일때만 스터디 추가 버튼이 보이도록 수정
llddang 60e3f40
fix: 스터디 페이지로 들어가지 못하던 문제 해결
llddang 4555cc5
feat: 스터디의 학습자료 갤러이에서 스터디원 에게만 자료 등록 버튼 보이도록 수정
llddang 03185fb
feat: 스터디의 학습자료 갤러리 팀원 또는 스터디원만 접근할 수 있도록 수정
llddang 7535787
feat: 스터디 페이지에 들어가지지 않는 문제 일단...
llddang 343ddc0
feat: 내 스터디 id 목록 조회 방법 변경
llddang 70c9199
fix: 자신의 팀인 경우에도 스터디 못 들어가는 오류 해결
llddang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 초기 렌더링시 default value로 잡혀서 user가 존재하는 걸로 인식되는 경우가 있는거 같습니다!
어디 문제인지는 확인이 필요할듯 합니다...