-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConstants.js
69 lines (64 loc) · 1.68 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
65
66
67
68
69
const themeColors = {
accent: "#F24E1E",
background: "#f2f2f2",
border: "#ddd",
avatar: "#A0A0A0",
overlay: "rgba(242,78,30,0.38)",
highlight: "#fff",
};
const TESTING = true;
const prettyTitle = {
target: "Target",
sideLanding: "Side Landing",
proxHole: "Proximity to Hole",
baseline: "Baseline SG",
expectedPutts: "Expected Putts",
strokes: "Strokes",
break: "Break",
club: "Club",
carry: "Carry",
completed: "Completed",
carryDiff: "Carry Difference",
distance: "Distance",
carryDiffAverage: "Carry Difference Average",
proxHoleAverage: "Proximity-to-hole Average",
sideLandingAverage: "Side Landing Average",
leftSideLandingAverage: "Average Miss Left",
rightSideLandingAverage: "Average Miss Right",
sideLandingTotal: "Side Landing Total",
strokesGained: "Strokes Gained Total",
strokesGainedAverage: "Strokes Gained Average",
};
const shortTitle = {
strokesGained: "SG",
strokesGainedAverage: "SGA",
sideLanding: "SL",
carryDiffAverage: "CDA",
proxHoleAverage: "PHA",
sideLandingAverage: "SLA",
sideLandingTotal: "SLT",
rightSideLandingAverage: "AMR",
leftSideLandingAverage: "AML",
};
const prettyRole = {
coach: "Coach",
player: "Player",
owner: "Owner",
};
const firebaseErrors = {
"auth/email-already-in-use": "Email is already in use",
"auth/invalid-email": "Incorrect email / password",
"auth/weak-password": "Password is too weak",
"auth/user-not-found": "User not found",
"auth/wrong-password": "Incorrect email / password",
"auth/missing-email": "Missing email",
"auth/missing-password": "Missing password",
};
export {
TESTING,
firebaseErrors,
prettyRole,
prettyTitle,
shortTitle,
themeColors,
};