@dubsdotapp/expo 0.5.5 → 0.5.6
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.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/ui/game/JoinGameSheet.tsx +5 -2
package/dist/index.mjs
CHANGED
|
@@ -5350,6 +5350,7 @@ function JoinGameSheet({
|
|
|
5350
5350
|
awayColor = "#EF4444",
|
|
5351
5351
|
onSuccess,
|
|
5352
5352
|
onError,
|
|
5353
|
+
onTeamSelect,
|
|
5353
5354
|
isPoolModeEnabled = false
|
|
5354
5355
|
}) {
|
|
5355
5356
|
const t = useDubsTheme();
|
|
@@ -5455,7 +5456,10 @@ function JoinGameSheet({
|
|
|
5455
5456
|
bets: homeBets,
|
|
5456
5457
|
color: homeColor,
|
|
5457
5458
|
selected: selectedTeam === "home",
|
|
5458
|
-
onPress: () =>
|
|
5459
|
+
onPress: () => {
|
|
5460
|
+
setSelectedTeam("home");
|
|
5461
|
+
onTeamSelect?.("home");
|
|
5462
|
+
},
|
|
5459
5463
|
ImageComponent,
|
|
5460
5464
|
t
|
|
5461
5465
|
}
|
|
@@ -5469,7 +5473,10 @@ function JoinGameSheet({
|
|
|
5469
5473
|
bets: awayBets,
|
|
5470
5474
|
color: awayColor,
|
|
5471
5475
|
selected: selectedTeam === "away",
|
|
5472
|
-
onPress: () =>
|
|
5476
|
+
onPress: () => {
|
|
5477
|
+
setSelectedTeam("away");
|
|
5478
|
+
onTeamSelect?.("away");
|
|
5479
|
+
},
|
|
5473
5480
|
ImageComponent,
|
|
5474
5481
|
t
|
|
5475
5482
|
}
|