@opexa/portal-components 0.0.125 → 0.0.127

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.
@@ -88,6 +88,7 @@ export function BetRecords__client(props) {
88
88
  firstPage();
89
89
  setState({
90
90
  type: z.enum(GAME_TYPES).safeParse(details.value).data ?? null,
91
+ provider: null,
91
92
  });
92
93
  }, className: "w-full overflow-x-auto lg:w-fit", children: [_jsxs(SegmentGroup.Item, { value: "all", children: [_jsx(SegmentGroup.ItemText, { children: "All" }), _jsx(SegmentGroup.ItemControl, {}), _jsx(SegmentGroup.ItemHiddenInput, {})] }), gameTypes.map((type) => (_jsxs(SegmentGroup.Item, { value: type.id, children: [_jsx(SegmentGroup.ItemText, { children: type.name }), _jsx(SegmentGroup.ItemControl, {}), _jsx(SegmentGroup.ItemHiddenInput, {})] }, type.id))), _jsx(SegmentGroup.Indicator, {})] }) }), _jsx("div", { className: "border-border-secondary mt-2xl hidden border-t lg:block" }), _jsx("h3", { className: "text-text-secondary-700 mt-3xl text-sm font-semibold", children: "Table" }), _jsxs("div", { className: "mt-xl flex flex-col gap-lg lg:flex-row lg:items-center", children: [_jsxs(DatePicker.Root, { lazyMount: true, unmountOnExit: true, value: [state.timestamp?.start, state.timestamp?.end]
93
94
  .filter(Boolean)
@@ -53,12 +53,12 @@ function Item({ game, className, }) {
53
53
  const session = sessionQuery.data;
54
54
  const unmarkGameAsFavoriteMutation = useUnmarkGameAsFavoriteMutation({
55
55
  onSuccess() {
56
- toaster.create({
56
+ toaster.success({
57
57
  description: 'Game removed from favorites',
58
58
  });
59
59
  },
60
60
  onError() {
61
- toaster.create({
61
+ toaster.error({
62
62
  description: 'Failed to remove game from favorites',
63
63
  });
64
64
  },
@@ -49,24 +49,24 @@ export function GameLaunch() {
49
49
  const endGameSessionMutation = useEndGameSessionMutation();
50
50
  const markGameAsFavoriteMutation = useMarkGameAsFavoriteMutation({
51
51
  onSuccess() {
52
- toaster.create({
52
+ toaster.success({
53
53
  description: 'Game added to favorites',
54
54
  });
55
55
  },
56
56
  onError() {
57
- toaster.create({
57
+ toaster.error({
58
58
  description: 'Failed to add game to favorites',
59
59
  });
60
60
  },
61
61
  });
62
62
  const unmarkGameAsFavoriteMutation = useUnmarkGameAsFavoriteMutation({
63
63
  onSuccess() {
64
- toaster.create({
64
+ toaster.success({
65
65
  description: 'Game removed from favorites',
66
66
  });
67
67
  },
68
68
  onError() {
69
- toaster.create({
69
+ toaster.error({
70
70
  description: 'Failed to remove game from favorites',
71
71
  });
72
72
  },
@@ -22,24 +22,24 @@ export function Game(props) {
22
22
  const favoriteGames = favoriteGamesQuery.data ?? [];
23
23
  const markGameAsFavoriteMutation = useMarkGameAsFavoriteMutation({
24
24
  onSuccess() {
25
- toaster.create({
25
+ toaster.success({
26
26
  description: 'Game added to favorites',
27
27
  });
28
28
  },
29
29
  onError() {
30
- toaster.create({
30
+ toaster.error({
31
31
  description: 'Failed to add game to favorites',
32
32
  });
33
33
  },
34
34
  });
35
35
  const unmarkGameAsFavoriteMutation = useUnmarkGameAsFavoriteMutation({
36
36
  onSuccess() {
37
- toaster.create({
37
+ toaster.success({
38
38
  description: 'Game removed from favorites',
39
39
  });
40
40
  },
41
41
  onError() {
42
- toaster.create({
42
+ toaster.error({
43
43
  description: 'Failed to remove game from favorites',
44
44
  });
45
45
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.125",
3
+ "version": "0.0.127",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",