Skip to content

Commit

Permalink
Feat: #38 로그인 전역상태 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
eve712 committed Jun 22, 2021
1 parent c0b70b1 commit 5efc0ae
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions FE/issue-tracker/src/store/atoms/login.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { atom } from 'recoil';

export type loginInfoType = {
name: string;
avatar_url: string;
id: number | null;
};

export const isLoginState = atom({
key: 'isLoginState',
default: false,
});

export const loginInfoState = atom<loginInfoType>({
key: 'loginInfoState',
default: { name: '', avatar_url: '', id: null },
});

0 comments on commit 5efc0ae

Please sign in to comment.