@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.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: () => setSelectedTeam("home"),
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: () => setSelectedTeam("away"),
5476
+ onPress: () => {
5477
+ setSelectedTeam("away");
5478
+ onTeamSelect?.("away");
5479
+ },
5473
5480
  ImageComponent,
5474
5481
  t
5475
5482
  }