summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authortanhengyeow <E0032242@u.nus.edu>2020-05-31 16:22:49 +0800
committertanhengyeow <E0032242@u.nus.edu>2020-05-31 16:22:49 +0800
commit51c83a249ae92cb8cb53af224b56005d60d5e56c (patch)
tree8d8a93eae20fa9a320fce6f2d0e29a4c35cda7a5 /frontend
parent5ffecf85ac4f7914d2e855557573de5e7ede91c5 (diff)
downloadlibeufin-51c83a249ae92cb8cb53af224b56005d60d5e56c.tar.gz
libeufin-51c83a249ae92cb8cb53af224b56005d60d5e56c.tar.bz2
libeufin-51c83a249ae92cb8cb53af224b56005d60d5e56c.zip
Setup types and constants for frontend
Diffstat (limited to 'frontend')
-rw-r--r--frontend/src/constants.tsx4
-rw-r--r--frontend/src/types.tsx3
2 files changed, 7 insertions, 0 deletions
diff --git a/frontend/src/constants.tsx b/frontend/src/constants.tsx
new file mode 100644
index 00000000..4b41ab0c
--- /dev/null
+++ 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
new file mode 100644
index 00000000..33e6ff20
--- /dev/null
+++ b/frontend/src/types.tsx
@@ -0,0 +1,3 @@
+export interface Auth {
+ isAuthenticated: boolean | null;
+}