-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.js
64 lines (56 loc) · 1.58 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
export const START_DATE = "startDate";
export const END_DATE = "endDate";
export const FUND_GOAL = "fundGoal";
export const TITLE = "title";
export const SUBTITLE = "subtitle";
export const STORY = "story";
export const TOKEN = "token";
export const USERNAME = "username";
export const EMAIL = "email";
export const ACCESS_TOKEN = "accessToken";
export const PLEDGE_AMOUNT = "pledgeAmount";
export const LOG_OUT = "logOut";
export const SEARCH = "search";
export const TOTAL = "total";
export const URL = "url";
export const COLLABORATORS = "collaborators";
export const QUERIES = {
campaigns: "campaigns",
campaign: "campaign",
tokens: "tokens",
nonce: "nonce",
};
export const EVENTS = {
approval: "Approval",
pledge: "Pledge",
launch: "Launch",
claim: "Claim",
};
export const FUNCTIONS = {
approve: "approve",
launch: "launch",
pledge: "pledge",
claim: "claim",
};
export const ROUTES = {
home: "/",
login: "/login",
signUp: "/signup",
create: "/create",
pledgedProjects: "/pledged-projects",
createdProjects: "/created-projects",
connectWallet: "/connect-wallet",
};
export const UNAUTHENTICATED_ITEMS = [
{ link: ROUTES.login, title: "Login" },
{ link: ROUTES.signUp, title: "Sign Up" },
];
export const HEADER_DROPDOWN_ITEMS = [
{ link: ROUTES.pledgedProjects, title: "Pledged Projects" },
{ link: ROUTES.createdProjects, title: "Created Projects" },
];
export const CAMPAIGN_MAX_DURATION = 20;
export const CAMPAIGN_MIN_DURATION = 1;
export const AMOUNT_OF_ELEMENTS_PER_PAGE = 9;
export const NUM_OF_ELEMENTS_MAIN = 12;
export const today = new Date();