Skip to content

Commit

Permalink
Merge pull request #1060 from devwqc/part3-정봉찬-week16
Browse files Browse the repository at this point in the history
[정봉찬] Week16
  • Loading branch information
SeolJaeHyeok authored Apr 19, 2024
2 parents 8a56a3d + 2ab1f55 commit 9834cdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/contexts/LoginContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const LoginContext = createContext<LoginContextValue | null>(null);
// user 검증이 됐다면 자동 로그인과 로그인 상태 유지하기.

// 모든 컴포넌트에서 로그인 상태를 유지하고 싶은 목적으로 생성.
/** @TODO 프로젝트 파이팅!! */
export function LoginProvider({ children }: { children: ReactNode }) {
const [isLogin, setIsLogin] = useState(false);
const [loginUser, setLoginUser] = useState<User | null>(null);
Expand Down

0 comments on commit 9834cdf

Please sign in to comment.