@dubsdotapp/expo 0.5.8 → 0.5.9
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/dist/index.js +14 -45
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -45
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/ui/game/JoinGameSheet.tsx +14 -25
- package/src/ui/game/SolSlider.tsx +1 -27
- package/dist/index.d.mts +0 -1477
- package/dist/index.d.ts +0 -1477
package/package.json
CHANGED
|
@@ -169,7 +169,6 @@ export function JoinGameSheet({
|
|
|
169
169
|
|
|
170
170
|
const homeName = shortName ? shortName(opponents[0]?.name) : (opponents[0]?.name || 'Home');
|
|
171
171
|
const awayName = shortName ? shortName(opponents[1]?.name) : (opponents[1]?.name || 'Away');
|
|
172
|
-
const selectedName = selectedTeam === 'home' ? homeName : selectedTeam === 'away' ? awayName : '—';
|
|
173
172
|
|
|
174
173
|
const alreadyJoined = useMemo(() => {
|
|
175
174
|
if (!wallet.publicKey) return false;
|
|
@@ -299,21 +298,6 @@ export function JoinGameSheet({
|
|
|
299
298
|
</View>
|
|
300
299
|
)}
|
|
301
300
|
|
|
302
|
-
{/* SOL Slider */}
|
|
303
|
-
{selectedTeam && !isPoolModeEnabled && (
|
|
304
|
-
<View style={styles.sliderSection}>
|
|
305
|
-
<SolSlider
|
|
306
|
-
value={wager}
|
|
307
|
-
min={game.buyIn}
|
|
308
|
-
max={maxWager}
|
|
309
|
-
step={0.01}
|
|
310
|
-
accentColor={selectedTeam === 'home' ? homeColor : awayColor}
|
|
311
|
-
onValueChange={setWager}
|
|
312
|
-
onTick={onSliderTick}
|
|
313
|
-
/>
|
|
314
|
-
</View>
|
|
315
|
-
)}
|
|
316
|
-
|
|
317
301
|
{/* Summary Card */}
|
|
318
302
|
<View style={[styles.summaryCard, { backgroundColor: t.surface, borderColor: t.border }]}>
|
|
319
303
|
<View style={styles.summaryRow}>
|
|
@@ -335,11 +319,6 @@ export function JoinGameSheet({
|
|
|
335
319
|
</>
|
|
336
320
|
) : (
|
|
337
321
|
<>
|
|
338
|
-
<View style={styles.summaryRow}>
|
|
339
|
-
<Text style={[styles.summaryLabel, { color: t.textMuted }]}>Your side</Text>
|
|
340
|
-
<Text style={[styles.summaryValue, { color: t.text }]}>{selectedName}</Text>
|
|
341
|
-
</View>
|
|
342
|
-
<View style={[styles.summarySep, { backgroundColor: t.border }]} />
|
|
343
322
|
<View style={styles.summaryRow}>
|
|
344
323
|
<Text style={[styles.summaryLabel, { color: t.textMuted }]}>Total pool</Text>
|
|
345
324
|
<Text style={[styles.summaryValue, { color: t.text }]}>{formatSol(poolAfterJoin)} SOL</Text>
|
|
@@ -355,6 +334,19 @@ export function JoinGameSheet({
|
|
|
355
334
|
)}
|
|
356
335
|
</View>
|
|
357
336
|
|
|
337
|
+
{/* SOL Slider — sits right below summary card */}
|
|
338
|
+
{selectedTeam && !isPoolModeEnabled && (
|
|
339
|
+
<SolSlider
|
|
340
|
+
value={wager}
|
|
341
|
+
min={game.buyIn}
|
|
342
|
+
max={maxWager}
|
|
343
|
+
step={0.01}
|
|
344
|
+
accentColor={selectedTeam === 'home' ? homeColor : awayColor}
|
|
345
|
+
onValueChange={setWager}
|
|
346
|
+
onTick={onSliderTick}
|
|
347
|
+
/>
|
|
348
|
+
)}
|
|
349
|
+
|
|
358
350
|
{/* Already Joined Notice */}
|
|
359
351
|
{alreadyJoined && (
|
|
360
352
|
<View style={[styles.errorBox, { backgroundColor: t.surface, borderColor: t.border }]}>
|
|
@@ -563,11 +555,8 @@ const styles = StyleSheet.create({
|
|
|
563
555
|
flexDirection: 'row',
|
|
564
556
|
gap: 12,
|
|
565
557
|
},
|
|
566
|
-
sliderSection: {
|
|
567
|
-
marginTop: 16,
|
|
568
|
-
},
|
|
569
558
|
summaryCard: {
|
|
570
|
-
marginTop:
|
|
559
|
+
marginTop: 20,
|
|
571
560
|
borderRadius: 16,
|
|
572
561
|
borderWidth: 1,
|
|
573
562
|
overflow: 'hidden',
|
|
@@ -104,14 +104,6 @@ export function SolSlider({
|
|
|
104
104
|
|
|
105
105
|
return (
|
|
106
106
|
<View style={styles.container}>
|
|
107
|
-
{/* Value display */}
|
|
108
|
-
<View style={styles.valueRow}>
|
|
109
|
-
<Text style={[styles.valueText, { color: accent }]}>
|
|
110
|
-
{parseFloat(value.toFixed(4))}
|
|
111
|
-
</Text>
|
|
112
|
-
<Text style={[styles.solLabel, { color: accent }]}>SOL</Text>
|
|
113
|
-
</View>
|
|
114
|
-
|
|
115
107
|
{/* Track */}
|
|
116
108
|
<View
|
|
117
109
|
ref={trackRef}
|
|
@@ -170,25 +162,7 @@ export function SolSlider({
|
|
|
170
162
|
|
|
171
163
|
const styles = StyleSheet.create({
|
|
172
164
|
container: {
|
|
173
|
-
paddingVertical:
|
|
174
|
-
},
|
|
175
|
-
valueRow: {
|
|
176
|
-
flexDirection: 'row',
|
|
177
|
-
alignItems: 'baseline',
|
|
178
|
-
justifyContent: 'center',
|
|
179
|
-
marginBottom: 16,
|
|
180
|
-
gap: 4,
|
|
181
|
-
},
|
|
182
|
-
valueText: {
|
|
183
|
-
fontSize: 36,
|
|
184
|
-
fontWeight: '900',
|
|
185
|
-
letterSpacing: -1,
|
|
186
|
-
fontVariant: ['tabular-nums'],
|
|
187
|
-
},
|
|
188
|
-
solLabel: {
|
|
189
|
-
fontSize: 16,
|
|
190
|
-
fontWeight: '700',
|
|
191
|
-
opacity: 0.6,
|
|
165
|
+
paddingVertical: 4,
|
|
192
166
|
},
|
|
193
167
|
trackContainer: {
|
|
194
168
|
height: THUMB_SIZE + 16,
|