be-components 6.6.0 → 6.6.2
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/Engage/components/CompetitionCard.js +54 -1
- package/lib/commonjs/Engage/components/CompetitionCard.js.map +1 -1
- package/lib/commonjs/Group/api/index.js +203 -0
- package/lib/commonjs/Group/api/index.js.map +1 -0
- package/lib/commonjs/Group/components/GroupCTAButton.js +85 -0
- package/lib/commonjs/Group/components/GroupCTAButton.js.map +1 -0
- package/lib/commonjs/Group/components/GroupPlayerActionForm.js +166 -0
- package/lib/commonjs/Group/components/GroupPlayerActionForm.js.map +1 -0
- package/lib/commonjs/Group/components/ManageGroupForm.js +476 -0
- package/lib/commonjs/Group/components/ManageGroupForm.js.map +1 -0
- package/lib/commonjs/Group/index.js +671 -0
- package/lib/commonjs/Group/index.js.map +1 -0
- package/lib/commonjs/Wallet/index.js +8 -1
- package/lib/commonjs/Wallet/index.js.map +1 -1
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/Engage/components/CompetitionCard.js +54 -1
- package/lib/module/Engage/components/CompetitionCard.js.map +1 -1
- package/lib/module/Group/api/index.js +197 -0
- package/lib/module/Group/api/index.js.map +1 -0
- package/lib/module/Group/components/GroupCTAButton.js +78 -0
- package/lib/module/Group/components/GroupCTAButton.js.map +1 -0
- package/lib/module/Group/components/GroupPlayerActionForm.js +159 -0
- package/lib/module/Group/components/GroupPlayerActionForm.js.map +1 -0
- package/lib/module/Group/components/ManageGroupForm.js +469 -0
- package/lib/module/Group/components/ManageGroupForm.js.map +1 -0
- package/lib/module/Group/index.js +663 -0
- package/lib/module/Group/index.js.map +1 -0
- package/lib/module/Wallet/index.js +8 -1
- package/lib/module/Wallet/index.js.map +1 -1
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/lib/commonjs/Engage/components/CompetitionCard.d.ts +4 -1
- package/lib/typescript/lib/commonjs/Engage/components/CompetitionCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Group/api/index.d.ts +38 -0
- package/lib/typescript/lib/commonjs/Group/api/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Group/components/GroupCTAButton.d.ts +10 -0
- package/lib/typescript/lib/commonjs/Group/components/GroupCTAButton.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Group/components/GroupPlayerActionForm.d.ts +9 -0
- package/lib/typescript/lib/commonjs/Group/components/GroupPlayerActionForm.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Group/components/ManageGroupForm.d.ts +10 -0
- package/lib/typescript/lib/commonjs/Group/components/ManageGroupForm.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Group/index.d.ts +12 -0
- package/lib/typescript/lib/commonjs/Group/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Wallet/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Engage/components/CompetitionCard.d.ts +4 -1
- package/lib/typescript/lib/module/Engage/components/CompetitionCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Group/api/index.d.ts +37 -0
- package/lib/typescript/lib/module/Group/api/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/Group/components/GroupCTAButton.d.ts +10 -0
- package/lib/typescript/lib/module/Group/components/GroupCTAButton.d.ts.map +1 -0
- package/lib/typescript/lib/module/Group/components/GroupPlayerActionForm.d.ts +9 -0
- package/lib/typescript/lib/module/Group/components/GroupPlayerActionForm.d.ts.map +1 -0
- package/lib/typescript/lib/module/Group/components/ManageGroupForm.d.ts +10 -0
- package/lib/typescript/lib/module/Group/components/ManageGroupForm.d.ts.map +1 -0
- package/lib/typescript/lib/module/Group/index.d.ts +12 -0
- package/lib/typescript/lib/module/Group/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/Wallet/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/index.d.ts +2 -1
- package/lib/typescript/lib/module/index.d.ts.map +1 -1
- package/lib/typescript/src/Engage/components/CompetitionCard.d.ts +5 -2
- package/lib/typescript/src/Engage/components/CompetitionCard.d.ts.map +1 -1
- package/lib/typescript/src/Group/api/index.d.ts +47 -0
- package/lib/typescript/src/Group/api/index.d.ts.map +1 -0
- package/lib/typescript/src/Group/components/GroupCTAButton.d.ts +13 -0
- package/lib/typescript/src/Group/components/GroupCTAButton.d.ts.map +1 -0
- package/lib/typescript/src/Group/components/GroupPlayerActionForm.d.ts +12 -0
- package/lib/typescript/src/Group/components/GroupPlayerActionForm.d.ts.map +1 -0
- package/lib/typescript/src/Group/components/ManageGroupForm.d.ts +12 -0
- package/lib/typescript/src/Group/components/ManageGroupForm.d.ts.map +1 -0
- package/lib/typescript/src/Group/index.d.ts +14 -0
- package/lib/typescript/src/Group/index.d.ts.map +1 -0
- package/lib/typescript/src/Wallet/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +2 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Engage/components/CompetitionCard.tsx +29 -2
- package/src/Group/api/index.ts +176 -0
- package/src/Group/components/GroupCTAButton.tsx +57 -0
- package/src/Group/components/GroupPlayerActionForm.tsx +137 -0
- package/src/Group/components/ManageGroupForm.tsx +239 -0
- package/src/Group/index.tsx +497 -0
- package/src/Wallet/index.tsx +6 -1
- package/src/index.tsx +2 -0
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { Button, Text, TextInput, View } from "../../Components/Themed";
|
|
3
|
+
import { FlatList } from 'react-native';
|
|
4
|
+
import { Switch, Toggle } from '../../Components';
|
|
5
|
+
import { GroupApi } from '../api';
|
|
6
|
+
const sections = ['header', 'toggle', 'information', 'settings', 'invite', 'options'];
|
|
7
|
+
const ManageGroupForm = ({
|
|
8
|
+
group,
|
|
9
|
+
onFocusPosition,
|
|
10
|
+
onUpdateGroup,
|
|
11
|
+
onClose,
|
|
12
|
+
onInvitePlayer
|
|
13
|
+
}) => {
|
|
14
|
+
const [manage_state, setState] = useState({
|
|
15
|
+
draft_group: group,
|
|
16
|
+
loading: false,
|
|
17
|
+
active_toggle: 'information'
|
|
18
|
+
});
|
|
19
|
+
const {
|
|
20
|
+
loading,
|
|
21
|
+
draft_group,
|
|
22
|
+
active_toggle
|
|
23
|
+
} = manage_state;
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
if (!group) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
setState({
|
|
29
|
+
...manage_state,
|
|
30
|
+
draft_group: group
|
|
31
|
+
});
|
|
32
|
+
}, [group]);
|
|
33
|
+
const handleSave = async dg => {
|
|
34
|
+
if (!dg) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (loading) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
console.log(dg);
|
|
41
|
+
setState({
|
|
42
|
+
...manage_state,
|
|
43
|
+
loading: true
|
|
44
|
+
});
|
|
45
|
+
const new_group = await GroupApi.updateGroup(dg);
|
|
46
|
+
if (!new_group) {
|
|
47
|
+
setState({
|
|
48
|
+
...manage_state,
|
|
49
|
+
loading: false
|
|
50
|
+
});
|
|
51
|
+
return alert('Unable to update this group');
|
|
52
|
+
}
|
|
53
|
+
onUpdateGroup(new_group);
|
|
54
|
+
setState({
|
|
55
|
+
...manage_state,
|
|
56
|
+
loading: false
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
const renderSections = data => {
|
|
60
|
+
switch (data.item) {
|
|
61
|
+
case 'header':
|
|
62
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
63
|
+
type: "header",
|
|
64
|
+
style: {
|
|
65
|
+
flexDirection: 'row',
|
|
66
|
+
alignItems: 'center',
|
|
67
|
+
padding: 10,
|
|
68
|
+
borderTopRightRadius: 8,
|
|
69
|
+
borderTopLeftRadius: 8
|
|
70
|
+
}
|
|
71
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
72
|
+
transparent: true,
|
|
73
|
+
style: {
|
|
74
|
+
flex: 1
|
|
75
|
+
}
|
|
76
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
77
|
+
theme: "h1"
|
|
78
|
+
}, "EDIT YOUR GROUP"), /*#__PURE__*/React.createElement(Text, {
|
|
79
|
+
theme: "description",
|
|
80
|
+
style: {
|
|
81
|
+
marginTop: 3
|
|
82
|
+
}
|
|
83
|
+
}, "Use the form below to make updates to this group")), /*#__PURE__*/React.createElement(Button, {
|
|
84
|
+
title: "X",
|
|
85
|
+
float: true,
|
|
86
|
+
style: {
|
|
87
|
+
padding: 10
|
|
88
|
+
},
|
|
89
|
+
onPress: () => onClose()
|
|
90
|
+
}));
|
|
91
|
+
case 'information':
|
|
92
|
+
if (!draft_group) {
|
|
93
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
94
|
+
}
|
|
95
|
+
if (active_toggle != 'information') {
|
|
96
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
97
|
+
}
|
|
98
|
+
const is_changed = JSON.stringify({
|
|
99
|
+
name: draft_group.name,
|
|
100
|
+
description: draft_group.description
|
|
101
|
+
}) != JSON.stringify({
|
|
102
|
+
name: group.name,
|
|
103
|
+
description: group.description
|
|
104
|
+
}) ? true : false;
|
|
105
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
106
|
+
float: true,
|
|
107
|
+
style: {
|
|
108
|
+
margin: 10
|
|
109
|
+
}
|
|
110
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
111
|
+
type: "header",
|
|
112
|
+
style: {
|
|
113
|
+
flexDirection: 'row',
|
|
114
|
+
alignItems: 'center',
|
|
115
|
+
padding: 10
|
|
116
|
+
}
|
|
117
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
118
|
+
transparent: true,
|
|
119
|
+
style: {
|
|
120
|
+
flex: 1
|
|
121
|
+
}
|
|
122
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
123
|
+
theme: "h1"
|
|
124
|
+
}, "Edit Group Information")), /*#__PURE__*/React.createElement(Button, {
|
|
125
|
+
title: "UPDATE",
|
|
126
|
+
type: "success",
|
|
127
|
+
disabled: !is_changed,
|
|
128
|
+
loading: loading,
|
|
129
|
+
style: {
|
|
130
|
+
opacity: is_changed && !loading ? 1 : 0.5,
|
|
131
|
+
padding: 10
|
|
132
|
+
},
|
|
133
|
+
onPress: () => handleSave(draft_group)
|
|
134
|
+
})), /*#__PURE__*/React.createElement(View, {
|
|
135
|
+
transparent: true,
|
|
136
|
+
nativeID: "title",
|
|
137
|
+
type: "row",
|
|
138
|
+
style: {
|
|
139
|
+
flexWrap: "wrap",
|
|
140
|
+
padding: 10
|
|
141
|
+
}
|
|
142
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
143
|
+
transparent: true,
|
|
144
|
+
style: {
|
|
145
|
+
flexGrow: 1,
|
|
146
|
+
minWidth: 150
|
|
147
|
+
}
|
|
148
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
149
|
+
theme: "h1"
|
|
150
|
+
}, "Group Name"), /*#__PURE__*/React.createElement(Text, {
|
|
151
|
+
theme: "description",
|
|
152
|
+
style: {
|
|
153
|
+
marginTop: 3
|
|
154
|
+
}
|
|
155
|
+
}, "Give this group a unique name")), /*#__PURE__*/React.createElement(TextInput, {
|
|
156
|
+
value: draft_group.name,
|
|
157
|
+
style: {
|
|
158
|
+
minWidth: 150,
|
|
159
|
+
flexGrow: 1,
|
|
160
|
+
margin: 5
|
|
161
|
+
},
|
|
162
|
+
onFocusPosition: onFocusPosition,
|
|
163
|
+
onChangeText: text => setState({
|
|
164
|
+
...manage_state,
|
|
165
|
+
draft_group: {
|
|
166
|
+
...draft_group,
|
|
167
|
+
name: text
|
|
168
|
+
}
|
|
169
|
+
})
|
|
170
|
+
})), /*#__PURE__*/React.createElement(View, {
|
|
171
|
+
transparent: true,
|
|
172
|
+
nativeID: "description",
|
|
173
|
+
type: "row",
|
|
174
|
+
style: {
|
|
175
|
+
flexWrap: "wrap",
|
|
176
|
+
padding: 10
|
|
177
|
+
}
|
|
178
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
179
|
+
transparent: true,
|
|
180
|
+
style: {
|
|
181
|
+
flexGrow: 1,
|
|
182
|
+
minWidth: 150
|
|
183
|
+
}
|
|
184
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
185
|
+
theme: "h1"
|
|
186
|
+
}, "Group Description"), /*#__PURE__*/React.createElement(Text, {
|
|
187
|
+
theme: "description",
|
|
188
|
+
style: {
|
|
189
|
+
marginTop: 3
|
|
190
|
+
}
|
|
191
|
+
}, "Give this group a fun description")), /*#__PURE__*/React.createElement(TextInput, {
|
|
192
|
+
value: draft_group.description,
|
|
193
|
+
style: {
|
|
194
|
+
minWidth: 300,
|
|
195
|
+
flexGrow: 1,
|
|
196
|
+
margin: 5
|
|
197
|
+
},
|
|
198
|
+
onFocusPosition: onFocusPosition,
|
|
199
|
+
onChangeText: text => setState({
|
|
200
|
+
...manage_state,
|
|
201
|
+
draft_group: {
|
|
202
|
+
...draft_group,
|
|
203
|
+
description: text
|
|
204
|
+
}
|
|
205
|
+
})
|
|
206
|
+
})));
|
|
207
|
+
case 'invite':
|
|
208
|
+
if (!draft_group) {
|
|
209
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
210
|
+
}
|
|
211
|
+
if (active_toggle != 'information') {
|
|
212
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
213
|
+
}
|
|
214
|
+
const code_changed = draft_group.invite_code != group.invite_code ? true : false;
|
|
215
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
216
|
+
float: true,
|
|
217
|
+
style: {
|
|
218
|
+
margin: 10
|
|
219
|
+
}
|
|
220
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
221
|
+
type: "header",
|
|
222
|
+
style: {
|
|
223
|
+
flexDirection: 'row',
|
|
224
|
+
alignItems: 'center',
|
|
225
|
+
padding: 10
|
|
226
|
+
}
|
|
227
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
228
|
+
transparent: true,
|
|
229
|
+
style: {
|
|
230
|
+
flex: 1
|
|
231
|
+
}
|
|
232
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
233
|
+
theme: "h1"
|
|
234
|
+
}, "Group Players")), /*#__PURE__*/React.createElement(Button, {
|
|
235
|
+
title: "INVITE",
|
|
236
|
+
type: "success",
|
|
237
|
+
loading: loading,
|
|
238
|
+
style: {
|
|
239
|
+
padding: 10
|
|
240
|
+
},
|
|
241
|
+
onPress: () => onInvitePlayer()
|
|
242
|
+
})), /*#__PURE__*/React.createElement(View, {
|
|
243
|
+
transparent: true,
|
|
244
|
+
type: "body"
|
|
245
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
246
|
+
transparent: true,
|
|
247
|
+
type: "row",
|
|
248
|
+
style: {
|
|
249
|
+
padding: 10
|
|
250
|
+
}
|
|
251
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
252
|
+
transparent: true,
|
|
253
|
+
style: {
|
|
254
|
+
flex: 1
|
|
255
|
+
}
|
|
256
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
257
|
+
theme: "h1"
|
|
258
|
+
}, "INVITE ONLY"), /*#__PURE__*/React.createElement(Text, {
|
|
259
|
+
theme: "description",
|
|
260
|
+
style: {
|
|
261
|
+
marginTop: 3
|
|
262
|
+
}
|
|
263
|
+
}, "Make this group invite only so players can only join if invited by you")), /*#__PURE__*/React.createElement(Switch, {
|
|
264
|
+
value: draft_group.invite_only,
|
|
265
|
+
onChange: value => handleSave({
|
|
266
|
+
...draft_group,
|
|
267
|
+
invite_only: value,
|
|
268
|
+
invite_code: value ? `IC${group.group_id}` : ''
|
|
269
|
+
}),
|
|
270
|
+
switch_type: "on_off"
|
|
271
|
+
})), draft_group.invite_only ? /*#__PURE__*/React.createElement(View, {
|
|
272
|
+
transparent: true,
|
|
273
|
+
nativeID: "title",
|
|
274
|
+
type: "row",
|
|
275
|
+
style: {
|
|
276
|
+
flexWrap: "wrap"
|
|
277
|
+
}
|
|
278
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
279
|
+
transparent: true,
|
|
280
|
+
style: {
|
|
281
|
+
flexGrow: 1,
|
|
282
|
+
minWidth: 150,
|
|
283
|
+
padding: 10
|
|
284
|
+
}
|
|
285
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
286
|
+
theme: "h1"
|
|
287
|
+
}, "INVITE CODE"), /*#__PURE__*/React.createElement(Text, {
|
|
288
|
+
theme: "description",
|
|
289
|
+
style: {
|
|
290
|
+
marginTop: 3
|
|
291
|
+
}
|
|
292
|
+
}, "You can set a custom code for users to find your group")), /*#__PURE__*/React.createElement(View, {
|
|
293
|
+
transparent: true,
|
|
294
|
+
style: {
|
|
295
|
+
flexDirection: 'row',
|
|
296
|
+
alignItems: 'center',
|
|
297
|
+
minWidth: 200,
|
|
298
|
+
flexGrow: 1,
|
|
299
|
+
padding: 10
|
|
300
|
+
}
|
|
301
|
+
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
302
|
+
value: draft_group.invite_code,
|
|
303
|
+
style: {
|
|
304
|
+
flexGrow: 1,
|
|
305
|
+
marginRight: 5
|
|
306
|
+
},
|
|
307
|
+
onFocusPosition: onFocusPosition,
|
|
308
|
+
onChangeText: text => setState({
|
|
309
|
+
...manage_state,
|
|
310
|
+
draft_group: {
|
|
311
|
+
...draft_group,
|
|
312
|
+
invite_code: text
|
|
313
|
+
}
|
|
314
|
+
})
|
|
315
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
316
|
+
title: "SAVE",
|
|
317
|
+
type: "success",
|
|
318
|
+
disabled: !code_changed,
|
|
319
|
+
loading: loading,
|
|
320
|
+
style: {
|
|
321
|
+
opacity: code_changed && !loading ? 1 : 0.5,
|
|
322
|
+
padding: 10
|
|
323
|
+
},
|
|
324
|
+
onPress: () => handleSave(draft_group)
|
|
325
|
+
}))) : /*#__PURE__*/React.createElement(React.Fragment, null)));
|
|
326
|
+
case 'toggle':
|
|
327
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
328
|
+
style: {
|
|
329
|
+
padding: 10
|
|
330
|
+
}
|
|
331
|
+
}, /*#__PURE__*/React.createElement(Toggle, {
|
|
332
|
+
options: [{
|
|
333
|
+
key: 'information',
|
|
334
|
+
label: 'Information'
|
|
335
|
+
}, {
|
|
336
|
+
key: 'settings',
|
|
337
|
+
label: 'settings'
|
|
338
|
+
}],
|
|
339
|
+
onSelectOption: option => setState({
|
|
340
|
+
...manage_state,
|
|
341
|
+
active_toggle: option
|
|
342
|
+
}),
|
|
343
|
+
selected_option: active_toggle
|
|
344
|
+
}));
|
|
345
|
+
case 'settings':
|
|
346
|
+
if (active_toggle != 'settings') {
|
|
347
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
348
|
+
}
|
|
349
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
350
|
+
float: true,
|
|
351
|
+
style: {
|
|
352
|
+
margin: 10
|
|
353
|
+
}
|
|
354
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
355
|
+
type: "header",
|
|
356
|
+
style: {
|
|
357
|
+
flexDirection: 'row',
|
|
358
|
+
alignItems: 'center',
|
|
359
|
+
padding: 10,
|
|
360
|
+
borderTopRightRadius: 8,
|
|
361
|
+
borderTopLeftRadius: 8
|
|
362
|
+
}
|
|
363
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
364
|
+
transparent: true,
|
|
365
|
+
style: {
|
|
366
|
+
flex: 1
|
|
367
|
+
}
|
|
368
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
369
|
+
theme: "h1"
|
|
370
|
+
}, "Edit Group Settings"))), /*#__PURE__*/React.createElement(View, {
|
|
371
|
+
transparent: true,
|
|
372
|
+
nativeID: "title",
|
|
373
|
+
type: "row",
|
|
374
|
+
style: {
|
|
375
|
+
padding: 10
|
|
376
|
+
}
|
|
377
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
378
|
+
transparent: true,
|
|
379
|
+
style: {
|
|
380
|
+
flexGrow: 1,
|
|
381
|
+
minWidth: 150
|
|
382
|
+
}
|
|
383
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
384
|
+
theme: "h1"
|
|
385
|
+
}, "Show Leaderboard"), /*#__PURE__*/React.createElement(Text, {
|
|
386
|
+
theme: "description",
|
|
387
|
+
style: {
|
|
388
|
+
marginTop: 3
|
|
389
|
+
}
|
|
390
|
+
}, "Include a leaderboard for all players in this group")), /*#__PURE__*/React.createElement(Switch, {
|
|
391
|
+
value: draft_group.leaderboard_ind,
|
|
392
|
+
onChange: value => handleSave({
|
|
393
|
+
...draft_group,
|
|
394
|
+
leaderboard_ind: value
|
|
395
|
+
}),
|
|
396
|
+
switch_type: "on_off"
|
|
397
|
+
})), /*#__PURE__*/React.createElement(View, {
|
|
398
|
+
transparent: true,
|
|
399
|
+
nativeID: "title",
|
|
400
|
+
type: "row",
|
|
401
|
+
style: {
|
|
402
|
+
padding: 10
|
|
403
|
+
}
|
|
404
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
405
|
+
transparent: true,
|
|
406
|
+
style: {
|
|
407
|
+
flexGrow: 1,
|
|
408
|
+
minWidth: 150
|
|
409
|
+
}
|
|
410
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
411
|
+
theme: "h1"
|
|
412
|
+
}, "Order Alerts"), /*#__PURE__*/React.createElement(Text, {
|
|
413
|
+
theme: "description",
|
|
414
|
+
style: {
|
|
415
|
+
marginTop: 3
|
|
416
|
+
}
|
|
417
|
+
}, "Log each order a player in this group makes.")), /*#__PURE__*/React.createElement(Switch, {
|
|
418
|
+
value: draft_group.order_alerts,
|
|
419
|
+
onChange: value => handleSave({
|
|
420
|
+
...draft_group,
|
|
421
|
+
order_alerts: value
|
|
422
|
+
}),
|
|
423
|
+
switch_type: "on_off"
|
|
424
|
+
})), /*#__PURE__*/React.createElement(View, {
|
|
425
|
+
transparent: true,
|
|
426
|
+
nativeID: "title",
|
|
427
|
+
type: "row",
|
|
428
|
+
style: {
|
|
429
|
+
padding: 10
|
|
430
|
+
}
|
|
431
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
432
|
+
transparent: true,
|
|
433
|
+
style: {
|
|
434
|
+
flexGrow: 1,
|
|
435
|
+
minWidth: 150
|
|
436
|
+
}
|
|
437
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
438
|
+
theme: "h1"
|
|
439
|
+
}, "Competition Alerts"), /*#__PURE__*/React.createElement(Text, {
|
|
440
|
+
theme: "description",
|
|
441
|
+
style: {
|
|
442
|
+
marginTop: 3
|
|
443
|
+
}
|
|
444
|
+
}, "Log each competition a player in this group joins.")), /*#__PURE__*/React.createElement(Switch, {
|
|
445
|
+
value: draft_group.competition_alerts,
|
|
446
|
+
onChange: value => handleSave({
|
|
447
|
+
...draft_group,
|
|
448
|
+
competition_alerts: value
|
|
449
|
+
}),
|
|
450
|
+
switch_type: "on_off"
|
|
451
|
+
})));
|
|
452
|
+
default:
|
|
453
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
457
|
+
float: true,
|
|
458
|
+
style: {
|
|
459
|
+
flex: 1
|
|
460
|
+
}
|
|
461
|
+
}, /*#__PURE__*/React.createElement(FlatList, {
|
|
462
|
+
data: sections,
|
|
463
|
+
key: 'group_sections_manage',
|
|
464
|
+
keyExtractor: item => item,
|
|
465
|
+
renderItem: renderSections
|
|
466
|
+
}));
|
|
467
|
+
};
|
|
468
|
+
export default ManageGroupForm;
|
|
469
|
+
//# sourceMappingURL=ManageGroupForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","Button","Text","TextInput","View","FlatList","Switch","Toggle","GroupApi","sections","ManageGroupForm","group","onFocusPosition","onUpdateGroup","onClose","onInvitePlayer","manage_state","setState","draft_group","loading","active_toggle","handleSave","dg","console","log","new_group","updateGroup","alert","renderSections","data","item","createElement","type","style","flexDirection","alignItems","padding","borderTopRightRadius","borderTopLeftRadius","transparent","flex","theme","marginTop","title","float","onPress","Fragment","is_changed","JSON","stringify","name","description","margin","disabled","opacity","nativeID","flexWrap","flexGrow","minWidth","value","onChangeText","text","code_changed","invite_code","invite_only","onChange","group_id","switch_type","marginRight","options","key","label","onSelectOption","option","selected_option","leaderboard_ind","order_alerts","competition_alerts","keyExtractor","renderItem"],"sourceRoot":"../../../../src","sources":["Group/components/ManageGroupForm.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,MAAM,EAAEC,IAAI,EAAEC,SAAS,EAAEC,IAAI,QAAQ,yBAAyB;AACvE,SAASC,QAAQ,QAAQ,cAAc;AAEvC,SAASC,MAAM,EAAEC,MAAM,QAAQ,kBAAkB;AACjD,SAASC,QAAQ,QAAQ,QAAQ;AAEjC,MAAMC,QAAQ,GAAG,CAAC,QAAQ,EAAC,QAAQ,EAAC,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,CAAC;AAQnF,MAAMC,eAAe,GAAGA,CAAC;EAAEC,KAAK;EAAEC,eAAe;EAAEC,aAAa;EAAEC,OAAO;EAAEC;AAAqC,CAAC,KAAM;EACnH,MAAM,CAAEC,YAAY,EAAEC,QAAQ,CAAE,GAAGjB,QAAQ,CAIxC;IACCkB,WAAW,EAAEP,KAAK;IAClBQ,OAAO,EAAC,KAAK;IACbC,aAAa,EAAE;EACnB,CAAC,CAAC;EACF,MAAM;IAAED,OAAO;IAAED,WAAW;IAAEE;EAAc,CAAC,GAAGJ,YAAY;EAE5DjB,SAAS,CAAC,MAAM;IACZ,IAAG,CAACY,KAAK,EAAC;MAAE;IAAO;IACnBM,QAAQ,CAAC;MAAE,GAAGD,YAAY;MAACE,WAAW,EAAEP;IAAM,CAAC,CA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