@opexa/portal-components 0.0.126 → 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.
|
@@ -53,12 +53,12 @@ function Item({ game, className, }) {
|
|
|
53
53
|
const session = sessionQuery.data;
|
|
54
54
|
const unmarkGameAsFavoriteMutation = useUnmarkGameAsFavoriteMutation({
|
|
55
55
|
onSuccess() {
|
|
56
|
-
toaster.
|
|
56
|
+
toaster.success({
|
|
57
57
|
description: 'Game removed from favorites',
|
|
58
58
|
});
|
|
59
59
|
},
|
|
60
60
|
onError() {
|
|
61
|
-
toaster.
|
|
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.
|
|
52
|
+
toaster.success({
|
|
53
53
|
description: 'Game added to favorites',
|
|
54
54
|
});
|
|
55
55
|
},
|
|
56
56
|
onError() {
|
|
57
|
-
toaster.
|
|
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.
|
|
64
|
+
toaster.success({
|
|
65
65
|
description: 'Game removed from favorites',
|
|
66
66
|
});
|
|
67
67
|
},
|
|
68
68
|
onError() {
|
|
69
|
-
toaster.
|
|
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.
|
|
25
|
+
toaster.success({
|
|
26
26
|
description: 'Game added to favorites',
|
|
27
27
|
});
|
|
28
28
|
},
|
|
29
29
|
onError() {
|
|
30
|
-
toaster.
|
|
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.
|
|
37
|
+
toaster.success({
|
|
38
38
|
description: 'Game removed from favorites',
|
|
39
39
|
});
|
|
40
40
|
},
|
|
41
41
|
onError() {
|
|
42
|
-
toaster.
|
|
42
|
+
toaster.error({
|
|
43
43
|
description: 'Failed to remove game from favorites',
|
|
44
44
|
});
|
|
45
45
|
},
|