commit 51c83a249ae92cb8cb53af224b56005d60d5e56c parent 5ffecf85ac4f7914d2e855557573de5e7ede91c5 Author: tanhengyeow <E0032242@u.nus.edu> Date: Sun, 31 May 2020 16:22:49 +0800 Setup types and constants for frontend Diffstat:
| A | frontend/src/constants.tsx | | | 4 | ++++ |
| A | frontend/src/types.tsx | | | 3 | +++ |
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/frontend/src/constants.tsx b/frontend/src/constants.tsx @@ -0,0 +1,4 @@ +export const AUTHENTICATE = 'AUTHENTICATE'; +export type AUTHENTICATE = typeof AUTHENTICATE; +export const UNAUTHENTICATE = 'UNAUTHENTICATE'; +export type UNAUTHENTICATE = typeof UNAUTHENTICATE; diff --git a/frontend/src/types.tsx b/frontend/src/types.tsx @@ -0,0 +1,3 @@ +export interface Auth { + isAuthenticated: boolean | null; +}