be-components 3.5.6 → 3.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/CompetitionManager/components/AthleteSelector.js +52 -75
- package/lib/commonjs/CompetitionManager/components/AthleteSelector.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.js +135 -119
- package/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionHeader.js +69 -62
- package/lib/commonjs/CompetitionManager/components/CompetitionHeader.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js +86 -91
- package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js +143 -150
- package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/ContestSelector.js +57 -61
- package/lib/commonjs/CompetitionManager/components/ContestSelector.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js +120 -266
- package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/MarketSelector.js +35 -32
- package/lib/commonjs/CompetitionManager/components/MarketSelector.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/PlayerSelector.js +42 -39
- package/lib/commonjs/CompetitionManager/components/PlayerSelector.js.map +1 -1
- package/lib/commonjs/CompetitionManager/index.js +47 -50
- package/lib/commonjs/CompetitionManager/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/OrderBook.js +1 -0
- package/lib/commonjs/MarketComponents/components/OrderBook.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TournamentMarket/index.js +0 -1
- package/lib/commonjs/MarketComponents/components/TournamentMarket/index.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareCard.js +36 -51
- package/lib/commonjs/Squares/components/SquareCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquaresBoard.js +16 -7
- package/lib/commonjs/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/module/CompetitionManager/components/AthleteSelector.js +42 -65
- package/lib/module/CompetitionManager/components/AthleteSelector.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionContestsForm.js +93 -77
- package/lib/module/CompetitionManager/components/CompetitionContestsForm.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionHeader.js +47 -40
- package/lib/module/CompetitionManager/components/CompetitionHeader.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionInfoForm.js +59 -64
- package/lib/module/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js +108 -115
- package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
- package/lib/module/CompetitionManager/components/ContestSelector.js +34 -38
- package/lib/module/CompetitionManager/components/ContestSelector.js.map +1 -1
- package/lib/module/CompetitionManager/components/ContestSettingsForm.js +90 -237
- package/lib/module/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
- package/lib/module/CompetitionManager/components/MarketSelector.js +26 -23
- package/lib/module/CompetitionManager/components/MarketSelector.js.map +1 -1
- package/lib/module/CompetitionManager/components/PlayerSelector.js +30 -27
- package/lib/module/CompetitionManager/components/PlayerSelector.js.map +1 -1
- package/lib/module/CompetitionManager/index.js +32 -35
- package/lib/module/CompetitionManager/index.js.map +1 -1
- package/lib/module/MarketComponents/components/OrderBook.js +1 -0
- package/lib/module/MarketComponents/components/OrderBook.js.map +1 -1
- package/lib/module/MarketComponents/components/TournamentMarket/index.js +0 -1
- package/lib/module/MarketComponents/components/TournamentMarket/index.js.map +1 -1
- package/lib/module/Squares/components/SquareCard.js +33 -50
- package/lib/module/Squares/components/SquareCard.js.map +1 -1
- package/lib/module/Squares/components/SquaresBoard.js +16 -7
- package/lib/module/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/AthleteSelector.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionHeader.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/ContestSelector.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/ContestSettingsForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/MarketSelector.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/PlayerSelector.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/OrderBook.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquaresBoard.d.ts +2 -15
- package/lib/typescript/lib/commonjs/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/AthleteSelector.d.ts +1 -2
- package/lib/typescript/lib/module/CompetitionManager/components/AthleteSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionContestsForm.d.ts +2 -4
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionContestsForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionHeader.d.ts +1 -2
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionHeader.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionInfoForm.d.ts +2 -4
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionSettingsForm.d.ts +2 -4
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/ContestSelector.d.ts +1 -2
- package/lib/typescript/lib/module/CompetitionManager/components/ContestSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/ContestSettingsForm.d.ts +2 -4
- package/lib/typescript/lib/module/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/MarketSelector.d.ts +1 -2
- package/lib/typescript/lib/module/CompetitionManager/components/MarketSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/PlayerSelector.d.ts +1 -2
- package/lib/typescript/lib/module/CompetitionManager/components/PlayerSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/index.d.ts +3 -3
- package/lib/typescript/lib/module/CompetitionManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/OrderBook.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquareCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquareCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts +3 -3
- package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/AthleteSelector.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionContestsForm.d.ts +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionContestsForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionHeader.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionInfoForm.d.ts +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionSettingsForm.d.ts +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/ContestSelector.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/ContestSettingsForm.d.ts +1 -1
- package/lib/typescript/src/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/MarketSelector.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/PlayerSelector.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/index.d.ts +7 -1
- package/lib/typescript/src/CompetitionManager/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/OrderBook.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquareCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquaresBoard.d.ts +2 -2
- package/lib/typescript/src/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/CompetitionManager/components/AthleteSelector.tsx +32 -52
- package/src/CompetitionManager/components/CompetitionContestsForm.tsx +82 -89
- package/src/CompetitionManager/components/CompetitionHeader.tsx +45 -37
- package/src/CompetitionManager/components/CompetitionInfoForm.tsx +36 -40
- package/src/CompetitionManager/components/CompetitionSettingsForm.tsx +88 -96
- package/src/CompetitionManager/components/ContestSelector.tsx +33 -36
- package/src/CompetitionManager/components/ContestSettingsForm.tsx +58 -179
- package/src/CompetitionManager/components/MarketSelector.tsx +19 -21
- package/src/CompetitionManager/components/PlayerSelector.tsx +23 -26
- package/src/CompetitionManager/index.tsx +22 -25
- package/src/MarketComponents/components/OrderBook.tsx +1 -0
- package/src/MarketComponents/components/TournamentMarket/index.tsx +0 -1
- package/src/Squares/components/SquareCard.tsx +31 -46
- package/src/Squares/components/SquaresBoard.tsx +11 -4
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { view_styles } from '../../constants/styles';
|
|
2
|
+
import { Alert, Image } from 'react-native';
|
|
3
|
+
import { useColors } from '../../constants/useColors';
|
|
4
|
+
import { Button, Text, View } from '../../Components/Themed';
|
|
6
5
|
const CompetitionHeader = ({
|
|
7
6
|
width,
|
|
8
7
|
action_loading,
|
|
@@ -14,6 +13,7 @@ const CompetitionHeader = ({
|
|
|
14
13
|
onPause,
|
|
15
14
|
onResume
|
|
16
15
|
}) => {
|
|
16
|
+
const Colors = useColors();
|
|
17
17
|
const handleActivate = () => {
|
|
18
18
|
if (!competition_valid.valid) {
|
|
19
19
|
return alert(`Please complete all the required sections before activating`);
|
|
@@ -28,7 +28,6 @@ const CompetitionHeader = ({
|
|
|
28
28
|
};
|
|
29
29
|
return /*#__PURE__*/React.createElement(View, {
|
|
30
30
|
style: {
|
|
31
|
-
backgroundColor: Colors.shades.white,
|
|
32
31
|
flexGrow: 1,
|
|
33
32
|
minWidth: 330,
|
|
34
33
|
maxWidth: width
|
|
@@ -40,7 +39,7 @@ const CompetitionHeader = ({
|
|
|
40
39
|
alignItems: 'center',
|
|
41
40
|
padding: 20,
|
|
42
41
|
borderBottomWidth: 1,
|
|
43
|
-
borderColor: Colors.
|
|
42
|
+
borderColor: Colors.borders.light
|
|
44
43
|
}
|
|
45
44
|
}, /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Image, {
|
|
46
45
|
source: {
|
|
@@ -58,93 +57,101 @@ const CompetitionHeader = ({
|
|
|
58
57
|
marginLeft: 10
|
|
59
58
|
}
|
|
60
59
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
61
|
-
theme: "
|
|
60
|
+
theme: "h1"
|
|
62
61
|
}, competition.competition_name), /*#__PURE__*/React.createElement(Text, {
|
|
63
62
|
style: {
|
|
64
63
|
marginTop: 4
|
|
65
64
|
},
|
|
66
|
-
theme: "
|
|
65
|
+
theme: "h2"
|
|
67
66
|
}, competition.competition_description)), competition.status == 'pending' ? /*#__PURE__*/React.createElement(Button, {
|
|
68
67
|
title: 'ACTIVATE',
|
|
69
68
|
style: {
|
|
70
69
|
opacity: competition_valid.valid ? 1 : 0.5
|
|
71
70
|
},
|
|
72
71
|
loading: action_loading,
|
|
73
|
-
|
|
74
|
-
backgroundColor: Colors.utility.success,
|
|
72
|
+
type: "success",
|
|
75
73
|
onPress: () => handleActivate()
|
|
76
74
|
}) : /*#__PURE__*/React.createElement(React.Fragment, null)), competition.status == 'pending' ? /*#__PURE__*/React.createElement(View, {
|
|
75
|
+
type: "header",
|
|
77
76
|
style: {
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
flexDirection: 'row',
|
|
78
|
+
alignItems: 'center',
|
|
79
|
+
padding: 10
|
|
80
80
|
}
|
|
81
81
|
}, /*#__PURE__*/React.createElement(View, {
|
|
82
|
+
transparent: true,
|
|
82
83
|
style: {
|
|
83
84
|
flex: 1
|
|
84
85
|
}
|
|
85
86
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
86
|
-
theme: "
|
|
87
|
+
theme: "h1"
|
|
87
88
|
}, "COMPETITION IS PENDING"), /*#__PURE__*/React.createElement(Text, {
|
|
88
89
|
style: {
|
|
89
90
|
marginTop: 3
|
|
90
91
|
},
|
|
91
|
-
theme: "
|
|
92
|
+
theme: "description"
|
|
92
93
|
}, "Complete each section and press 'ACTIVATE'.")), /*#__PURE__*/React.createElement(Button, {
|
|
93
94
|
title: "DELETE",
|
|
94
95
|
style: {
|
|
95
96
|
opacity: !action_loading ? 1 : 0.5
|
|
96
97
|
},
|
|
97
98
|
loading: action_loading,
|
|
98
|
-
|
|
99
|
-
backgroundColor: Colors.utility.error,
|
|
99
|
+
type: "error",
|
|
100
100
|
onPress: async () => {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
101
|
+
Alert.alert('Are you sure you would like to delete?', 'This cannot be undone', [{
|
|
102
|
+
text: 'Cancel',
|
|
103
|
+
onPress: () => console.log('hey')
|
|
104
|
+
}, {
|
|
105
|
+
text: `Yes I'm Sure`,
|
|
106
|
+
onPress: () => onDelete()
|
|
107
|
+
}]);
|
|
106
108
|
}
|
|
107
109
|
})) : /*#__PURE__*/React.createElement(React.Fragment, null), competition.status == 'scheduled' ? /*#__PURE__*/React.createElement(View, {
|
|
110
|
+
type: "header",
|
|
108
111
|
style: {
|
|
109
|
-
|
|
110
|
-
|
|
112
|
+
flexDirection: 'row',
|
|
113
|
+
alignItems: 'center',
|
|
114
|
+
padding: 10
|
|
111
115
|
}
|
|
112
116
|
}, /*#__PURE__*/React.createElement(View, {
|
|
117
|
+
transparent: true,
|
|
113
118
|
style: {
|
|
114
119
|
flex: 1
|
|
115
120
|
}
|
|
116
121
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
117
|
-
theme: "
|
|
122
|
+
theme: "h1"
|
|
118
123
|
}, "COMPETITION IS ACTIVE"), /*#__PURE__*/React.createElement(Text, {
|
|
119
124
|
style: {
|
|
120
125
|
marginTop: 3
|
|
121
126
|
},
|
|
122
|
-
theme: "
|
|
127
|
+
theme: "description"
|
|
123
128
|
}, "In order to edit this competition, you must first pause it.")), /*#__PURE__*/React.createElement(Button, {
|
|
124
129
|
title: "PAUSE",
|
|
125
130
|
style: {
|
|
126
131
|
opacity: !action_loading && competition_valid.valid ? 1 : 0.5
|
|
127
132
|
},
|
|
128
133
|
loading: action_loading,
|
|
129
|
-
|
|
130
|
-
backgroundColor: Colors.utility.success,
|
|
134
|
+
type: "success",
|
|
131
135
|
onPress: () => onPause()
|
|
132
136
|
})) : /*#__PURE__*/React.createElement(React.Fragment, null), competition.status == 'paused' ? /*#__PURE__*/React.createElement(View, {
|
|
137
|
+
type: "header",
|
|
133
138
|
style: {
|
|
134
|
-
|
|
135
|
-
|
|
139
|
+
flexDirection: 'row',
|
|
140
|
+
alignItems: 'center',
|
|
141
|
+
padding: 10
|
|
136
142
|
}
|
|
137
143
|
}, /*#__PURE__*/React.createElement(View, {
|
|
144
|
+
transparent: true,
|
|
138
145
|
style: {
|
|
139
146
|
flex: 1
|
|
140
147
|
}
|
|
141
148
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
142
|
-
theme: "
|
|
149
|
+
theme: "h1"
|
|
143
150
|
}, "EDITING COMPETITION"), /*#__PURE__*/React.createElement(Text, {
|
|
144
151
|
style: {
|
|
145
152
|
marginTop: 3
|
|
146
153
|
},
|
|
147
|
-
theme: "
|
|
154
|
+
theme: "description"
|
|
148
155
|
}, "Feel free to make changes. When done, simply press resume.")), competition_summaries.length == 0 ? /*#__PURE__*/React.createElement(Button, {
|
|
149
156
|
title: "DELETE",
|
|
150
157
|
style: {
|
|
@@ -152,14 +159,15 @@ const CompetitionHeader = ({
|
|
|
152
159
|
opacity: !action_loading ? 1 : 0.5
|
|
153
160
|
},
|
|
154
161
|
loading: action_loading,
|
|
155
|
-
|
|
156
|
-
backgroundColor: Colors.utility.error,
|
|
162
|
+
type: "error",
|
|
157
163
|
onPress: async () => {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
162
|
-
|
|
164
|
+
Alert.alert('Are you sure you would like to delete?', 'This cannot be undone', [{
|
|
165
|
+
text: 'Cancel',
|
|
166
|
+
onPress: () => console.log('hey')
|
|
167
|
+
}, {
|
|
168
|
+
text: `Yes I'm Sure`,
|
|
169
|
+
onPress: () => onDelete()
|
|
170
|
+
}]);
|
|
163
171
|
}
|
|
164
172
|
}) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(Button, {
|
|
165
173
|
title: "RESUME",
|
|
@@ -167,8 +175,7 @@ const CompetitionHeader = ({
|
|
|
167
175
|
opacity: !action_loading && competition_valid.valid ? 1 : 0.5
|
|
168
176
|
},
|
|
169
177
|
loading: action_loading,
|
|
170
|
-
|
|
171
|
-
backgroundColor: Colors.brand.electric,
|
|
178
|
+
type: "success",
|
|
172
179
|
onPress: () => handleResume()
|
|
173
180
|
})) : /*#__PURE__*/React.createElement(React.Fragment, null));
|
|
174
181
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","Alert","Image","useColors","Button","Text","View","CompetitionHeader","width","action_loading","competition_summaries","competition","competition_valid","onDelete","onActivate","onPause","onResume","Colors","handleActivate","valid","alert","handleResume","createElement","style","flexGrow","minWidth","maxWidth","nativeID","flexDirection","alignItems","padding","borderBottomWidth","borderColor","borders","light","source","uri","image","url","height","borderRadius","resizeMode","flex","marginLeft","theme","competition_name","marginTop","competition_description","status","title","opacity","loading","type","onPress","Fragment","transparent","text","console","log","length","marginRight"],"sourceRoot":"../../../../src","sources":["CompetitionManager/components/CompetitionHeader.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,KAAK,QAAQ,cAAc;AAE3C,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SAASC,MAAM,EAAEC,IAAI,EAAEC,IAAI,QAAQ,yBAAyB;AAoB5D,MAAMC,iBAAiB,GAAGA,CAAC;EAAEC,KAAK;EAAEC,cAAc;EAAEC,qBAAqB;EAAEC,WAAW;EAAEC,iBAAiB;EAAEC,QAAQ;EAAEC,UAAU;EAAEC,OAAO;EAAEC;AAAgC,CAAC,KAAK;EAC5K,MAAMC,MAAM,GAAGd,SAAS,CAAC,CAAC;EAC1B,MAAMe,cAAc,GAAGA,CAAA,KAAM;IACzB,I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;QACIF,IAAI,EAAE,cAAc;QACpBH,OAAO,EAACA,CAAA,KAAMxC,QAAQ,CAAC;MAC3B,CAAC,CACJ,CAAC;IACN;EAAE,CACL,CAAC,gBACDb,KAAA,CAAAsB,aAAA,CAAAtB,KAAA,CAAAsD,QAAA,MAAI,CAAC,eACNtD,KAAA,CAAAsB,aAAA,CAAClB,MAAM;IACH6C,KAAK,EAAC,QAAQ;IACd1B,KAAK,EAAE;MAAE2B,OAAO,EAAC,CAACzC,cAAc,IAAIG,iBAAiB,CAACO,KAAK,GAAG,CAAC,GAAE;IAAI,CAAE;IACvEgC,OAAO,EAAE1C,cAAe;IACxB2C,IAAI,EAAC,SAAS;IACdC,OAAO,EAAEA,CAAA,KAAMhC,YAAY,CAAC;EAAE,CACjC,CACC,CAAC,gBACNrB,KAAA,CAAAsB,aAAA,CAAAtB,KAAA,CAAAsD,QAAA,MAAI,CACH,CAAC;AAEf,CAAC;AAED,eAAe/C,iBAAiB","ignoreList":[]}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { view_styles } from "../../constants/styles";
|
|
2
|
+
import { Image } from "react-native";
|
|
4
3
|
//import ImageUploader from '../../Components/ImageUploader';
|
|
5
4
|
|
|
6
|
-
import {
|
|
7
|
-
import Colors from '../../constants/colors';
|
|
5
|
+
import { Icons, Switch } from '../../Components';
|
|
8
6
|
import ImageUploader from '../../Components/ImageUploader';
|
|
7
|
+
import { Button, Text, TextInput, View } from '../../Components/Themed';
|
|
8
|
+
import { useColors } from '../../constants/useColors';
|
|
9
9
|
const CompetitionInfoForm = ({
|
|
10
10
|
is_valid,
|
|
11
11
|
player,
|
|
12
12
|
competition,
|
|
13
|
-
width,
|
|
14
13
|
onCompetitionUpdate
|
|
15
14
|
}) => {
|
|
16
15
|
const [expanded, setExpanded] = useState(false);
|
|
17
16
|
const [draft_competition, setDraftCompetition] = useState(undefined);
|
|
17
|
+
const Colors = useColors();
|
|
18
18
|
useEffect(() => {
|
|
19
19
|
setDraftCompetition(competition);
|
|
20
20
|
}, [competition]);
|
|
@@ -23,75 +23,70 @@ const CompetitionInfoForm = ({
|
|
|
23
23
|
}
|
|
24
24
|
const is_changed = JSON.stringify(draft_competition) != JSON.stringify(competition) ? true : false;
|
|
25
25
|
return /*#__PURE__*/React.createElement(View, {
|
|
26
|
+
float: true,
|
|
26
27
|
style: {
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
flexGrow: 1,
|
|
29
|
+
borderRadius: 0
|
|
29
30
|
}
|
|
30
|
-
}, /*#__PURE__*/React.createElement(
|
|
31
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
32
|
+
float: true,
|
|
31
33
|
style: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
flexDirection: 'row',
|
|
35
|
+
alignItems: 'center',
|
|
36
|
+
borderRadius: 0
|
|
34
37
|
},
|
|
35
38
|
onPress: () => setExpanded(!expanded)
|
|
36
39
|
}, is_valid ? /*#__PURE__*/React.createElement(Icons.CheckCirlceIcon, {
|
|
37
40
|
size: 16,
|
|
38
|
-
color: Colors.
|
|
41
|
+
color: Colors.text.success
|
|
39
42
|
}) : /*#__PURE__*/React.createElement(Icons.AlertIcon, {
|
|
40
43
|
size: 16,
|
|
41
|
-
color: Colors.
|
|
44
|
+
color: Colors.text.warning
|
|
42
45
|
}), /*#__PURE__*/React.createElement(View, {
|
|
46
|
+
transparent: true,
|
|
43
47
|
style: {
|
|
44
48
|
flex: 1,
|
|
45
49
|
marginLeft: 10
|
|
46
50
|
}
|
|
47
51
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
48
|
-
theme: "
|
|
52
|
+
theme: "h1"
|
|
49
53
|
}, "Competition Information"), /*#__PURE__*/React.createElement(Text, {
|
|
50
54
|
style: {
|
|
51
55
|
marginTop: 3
|
|
52
56
|
},
|
|
53
|
-
theme: "
|
|
57
|
+
theme: "description"
|
|
54
58
|
}, "Manage the high level information of this competition")), is_changed ? /*#__PURE__*/React.createElement(Button, {
|
|
55
59
|
title: "SAVE",
|
|
56
|
-
|
|
57
|
-
title_color: Colors.shades.white,
|
|
58
|
-
backgroundColor: Colors.utility.success,
|
|
60
|
+
type: "success",
|
|
59
61
|
onPress: () => onCompetitionUpdate(draft_competition)
|
|
60
62
|
}) : /*#__PURE__*/React.createElement(Icons.ChevronIcon, {
|
|
61
63
|
direction: expanded ? 'up' : 'down',
|
|
62
|
-
color: Colors.
|
|
64
|
+
color: Colors.text.h1,
|
|
63
65
|
size: 8
|
|
64
66
|
})), expanded ? /*#__PURE__*/React.createElement(View, {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
...view_styles.section_body,
|
|
68
|
-
padding: 10,
|
|
69
|
-
minWidth: 300,
|
|
70
|
-
maxWidth: width,
|
|
71
|
-
backgroundColor: Colors.shades.shade100
|
|
72
|
-
}
|
|
67
|
+
type: "body",
|
|
68
|
+
nativeID: "competition_info"
|
|
73
69
|
}, /*#__PURE__*/React.createElement(View, {
|
|
70
|
+
type: "row",
|
|
74
71
|
nativeID: "competition_image",
|
|
75
72
|
style: {
|
|
76
|
-
|
|
77
|
-
flexWrap: 'wrap',
|
|
78
|
-
maxWidth: width,
|
|
73
|
+
alignItems: 'flex-start',
|
|
79
74
|
borderBottomWidth: 1,
|
|
80
|
-
borderColor: Colors.
|
|
75
|
+
borderColor: Colors.borders.light,
|
|
76
|
+
padding: 10
|
|
81
77
|
}
|
|
82
78
|
}, /*#__PURE__*/React.createElement(View, {
|
|
83
79
|
style: {
|
|
84
80
|
flex: 1,
|
|
85
|
-
margin: 5
|
|
86
|
-
minWidth: 200
|
|
81
|
+
margin: 5
|
|
87
82
|
}
|
|
88
83
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
89
|
-
theme: "
|
|
84
|
+
theme: "h1"
|
|
90
85
|
}, "Competition Image"), /*#__PURE__*/React.createElement(Text, {
|
|
91
86
|
style: {
|
|
92
87
|
marginTop: 3
|
|
93
88
|
},
|
|
94
|
-
theme: "
|
|
89
|
+
theme: "description"
|
|
95
90
|
}, "Give this competition an image so it is recognizable to those trying to join.")), /*#__PURE__*/React.createElement(ImageUploader, {
|
|
96
91
|
public_id: `comp_image_${competition.competition_id}_${Math.random()}`,
|
|
97
92
|
onFinishUpload: obj => onCompetitionUpdate({
|
|
@@ -112,17 +107,20 @@ const CompetitionInfoForm = ({
|
|
|
112
107
|
},
|
|
113
108
|
resizeMode: "cover"
|
|
114
109
|
}), /*#__PURE__*/React.createElement(Text, {
|
|
110
|
+
style: {
|
|
111
|
+
marginTop: 10
|
|
112
|
+
},
|
|
115
113
|
size: 12,
|
|
116
|
-
color: Colors.
|
|
114
|
+
color: Colors.text.action,
|
|
117
115
|
textAlign: "center"
|
|
118
116
|
}, "CHANGE"))), /*#__PURE__*/React.createElement(View, {
|
|
117
|
+
type: "row",
|
|
119
118
|
nativeID: "competition_name",
|
|
120
119
|
style: {
|
|
121
|
-
...view_styles.body_row,
|
|
122
120
|
flexWrap: 'wrap',
|
|
123
|
-
|
|
121
|
+
padding: 10,
|
|
124
122
|
borderBottomWidth: 1,
|
|
125
|
-
borderColor: Colors.
|
|
123
|
+
borderColor: Colors.borders.light
|
|
126
124
|
}
|
|
127
125
|
}, /*#__PURE__*/React.createElement(View, {
|
|
128
126
|
style: {
|
|
@@ -131,16 +129,16 @@ const CompetitionInfoForm = ({
|
|
|
131
129
|
minWidth: 200
|
|
132
130
|
}
|
|
133
131
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
134
|
-
theme: "
|
|
132
|
+
theme: "h1"
|
|
135
133
|
}, "Competition Name"), /*#__PURE__*/React.createElement(Text, {
|
|
136
134
|
style: {
|
|
137
135
|
marginTop: 3
|
|
138
136
|
},
|
|
139
|
-
theme: "
|
|
137
|
+
theme: "description"
|
|
140
138
|
}, "Give the competition a memorable name that aligns with the type and payout.")), /*#__PURE__*/React.createElement(TextInput, {
|
|
141
139
|
style: {
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
flex: 1,
|
|
141
|
+
minWidth: 200,
|
|
144
142
|
margin: 5
|
|
145
143
|
},
|
|
146
144
|
onChangeText: text => setDraftCompetition({
|
|
@@ -148,17 +146,15 @@ const CompetitionInfoForm = ({
|
|
|
148
146
|
competition_name: text
|
|
149
147
|
}),
|
|
150
148
|
value: draft_competition.competition_name,
|
|
151
|
-
placeholder: "Competition Name"
|
|
152
|
-
placeholderTextColor: Colors.brand.slate
|
|
149
|
+
placeholder: "Competition Name"
|
|
153
150
|
})), /*#__PURE__*/React.createElement(View, {
|
|
151
|
+
type: "row",
|
|
154
152
|
nativeID: "competition_description",
|
|
155
153
|
style: {
|
|
156
|
-
...view_styles.body_row,
|
|
157
154
|
flexWrap: 'wrap',
|
|
158
|
-
|
|
159
|
-
marginTop: 10,
|
|
155
|
+
padding: 10,
|
|
160
156
|
borderBottomWidth: 1,
|
|
161
|
-
borderColor: Colors.
|
|
157
|
+
borderColor: Colors.borders.light
|
|
162
158
|
}
|
|
163
159
|
}, /*#__PURE__*/React.createElement(View, {
|
|
164
160
|
style: {
|
|
@@ -167,16 +163,16 @@ const CompetitionInfoForm = ({
|
|
|
167
163
|
minWidth: 200
|
|
168
164
|
}
|
|
169
165
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
170
|
-
theme: "
|
|
166
|
+
theme: "h2"
|
|
171
167
|
}, "Competition Description"), /*#__PURE__*/React.createElement(Text, {
|
|
172
168
|
style: {
|
|
173
169
|
marginTop: 3
|
|
174
170
|
},
|
|
175
|
-
theme: "
|
|
171
|
+
theme: "description"
|
|
176
172
|
}, "Give the competition a memorable description that would entice users to participate.")), /*#__PURE__*/React.createElement(TextInput, {
|
|
177
173
|
style: {
|
|
178
|
-
|
|
179
|
-
|
|
174
|
+
flex: 1,
|
|
175
|
+
minWidth: 200,
|
|
180
176
|
margin: 5
|
|
181
177
|
},
|
|
182
178
|
onChangeText: text => setDraftCompetition({
|
|
@@ -184,16 +180,15 @@ const CompetitionInfoForm = ({
|
|
|
184
180
|
competition_description: text
|
|
185
181
|
}),
|
|
186
182
|
value: draft_competition.competition_description,
|
|
187
|
-
placeholder: "Pick 5 games ATS from NFL Week 6 matchups"
|
|
188
|
-
placeholderTextColor: Colors.brand.slate
|
|
183
|
+
placeholder: "Pick 5 games ATS from NFL Week 6 matchups"
|
|
189
184
|
})), /*#__PURE__*/React.createElement(View, {
|
|
185
|
+
type: "row",
|
|
190
186
|
nativeID: "invite_only",
|
|
191
187
|
style: {
|
|
192
|
-
...view_styles.body_row,
|
|
193
188
|
flexWrap: 'wrap',
|
|
194
|
-
|
|
189
|
+
padding: 10,
|
|
195
190
|
borderBottomWidth: 1,
|
|
196
|
-
borderColor: Colors.
|
|
191
|
+
borderColor: Colors.borders.light
|
|
197
192
|
}
|
|
198
193
|
}, /*#__PURE__*/React.createElement(View, {
|
|
199
194
|
style: {
|
|
@@ -202,12 +197,12 @@ const CompetitionInfoForm = ({
|
|
|
202
197
|
marginRight: 15
|
|
203
198
|
}
|
|
204
199
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
205
|
-
theme: "
|
|
200
|
+
theme: "h1"
|
|
206
201
|
}, "Make Private"), /*#__PURE__*/React.createElement(Text, {
|
|
207
202
|
style: {
|
|
208
203
|
marginTop: 3
|
|
209
204
|
},
|
|
210
|
-
theme: "
|
|
205
|
+
theme: "description"
|
|
211
206
|
}, "Only access this competition using an invite code.")), /*#__PURE__*/React.createElement(Switch, {
|
|
212
207
|
disabled: competition.competition_season_id ? true : false,
|
|
213
208
|
value: competition.invite_only,
|
|
@@ -217,13 +212,13 @@ const CompetitionInfoForm = ({
|
|
|
217
212
|
invite_only: value
|
|
218
213
|
})
|
|
219
214
|
})), player?.role == 'admin' ? /*#__PURE__*/React.createElement(View, {
|
|
215
|
+
type: "row",
|
|
220
216
|
nativeID: "invite_only",
|
|
221
217
|
style: {
|
|
222
|
-
...view_styles.body_row,
|
|
223
218
|
flexWrap: 'wrap',
|
|
224
|
-
|
|
219
|
+
padding: 10,
|
|
225
220
|
borderBottomWidth: 1,
|
|
226
|
-
borderColor: Colors.
|
|
221
|
+
borderColor: Colors.borders.light
|
|
227
222
|
}
|
|
228
223
|
}, /*#__PURE__*/React.createElement(View, {
|
|
229
224
|
style: {
|
|
@@ -232,12 +227,12 @@ const CompetitionInfoForm = ({
|
|
|
232
227
|
marginRight: 15
|
|
233
228
|
}
|
|
234
229
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
235
|
-
theme: "
|
|
230
|
+
theme: "h2"
|
|
236
231
|
}, "Make Template"), /*#__PURE__*/React.createElement(Text, {
|
|
237
232
|
style: {
|
|
238
233
|
marginTop: 3
|
|
239
234
|
},
|
|
240
|
-
theme: "
|
|
235
|
+
theme: "description"
|
|
241
236
|
}, "This will allow for other users to copy this competition and create it for themselves.")), /*#__PURE__*/React.createElement(Switch, {
|
|
242
237
|
value: competition.template ? true : false,
|
|
243
238
|
switch_type: "on_off",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useState","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","Image","Icons","Switch","ImageUploader","Button","Text","TextInput","View","useColors","CompetitionInfoForm","is_valid","player","competition","onCompetitionUpdate","expanded","setExpanded","draft_competition","setDraftCompetition","undefined","Colors","createElement","Fragment","is_changed","JSON","stringify","float","style","flexGrow","borderRadius","flexDirection","alignItems","onPress","CheckCirlceIcon","size","color","text","success","AlertIcon","warning","transparent","flex","marginLeft","theme","marginTop","title","type","ChevronIcon","direction","h1","nativeID","borderBottomWidth","borderColor","borders","light","padding","margin","public_id","competition_id","Math","random","onFinishUpload","obj","image","url","secure_url","source","uri","height","width","resizeMode","action","textAlign","flexWrap","minWidth","onChangeText","competition_name","value","placeholder","competition_description","marginRight","disabled","competition_season_id","invite_only","switch_type","onChange","role","template"],"sourceRoot":"../../../../src","sources":["CompetitionManager/components/CompetitionInfoForm.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ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