-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconstants.js
45 lines (35 loc) · 862 Bytes
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
var URL_ENDPOINT = "https://api.petroly.co";
if (process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test")
URL_ENDPOINT = "http://localhost:8000/endpoint/";
export const USER = {
LOGGED_OUT: "logged_out",
LOGGED_IN: "logged_in",
VERIFING: "verifing",
SETTING: "setting",
};
export const T = {
LOGIN: "login",
LOGOUT: "logout",
SET_CLIENT: "set_client",
SET_ME: "set_me",
CHANGE_LANG: "change_language",
CHANGE_THEME: "change_theme",
};
// Languages
export const L = {
AR_SA: "ar-SA",
EN_US: "en-US",
};
export const M = {
DARK: "dark",
LIGHT: "light",
};
// Set a default const language
export const DEF_LANG = L.EN_US;
export const DEF_THEME = M.DARK;
export const langDirection = (inLang) => ({
width: "100%",
display: "flex",
justifyContent: "flex-start !important",
});
export { URL_ENDPOINT };