@blocklet/launcher-workflow 1.7.5 → 1.7.8
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/lib/prepare.js +3 -7
- package/package.json +9 -9
package/lib/prepare.js
CHANGED
|
@@ -67,7 +67,6 @@ function PreparePage() {
|
|
|
67
67
|
});
|
|
68
68
|
const routerPrefix = (0, _router.usePrefix)();
|
|
69
69
|
const [launching, setLaunching] = (0, _react.useState)(false);
|
|
70
|
-
const [error, setError] = (0, _react.useState)('');
|
|
71
70
|
const [showLaunchInstanceDialog, setShowLaunchInstanceDialog] = (0, _react.useState)(false);
|
|
72
71
|
const {
|
|
73
72
|
nftId
|
|
@@ -152,7 +151,8 @@ function PreparePage() {
|
|
|
152
151
|
});
|
|
153
152
|
|
|
154
153
|
if (status !== 202) {
|
|
155
|
-
|
|
154
|
+
_Toast.default.error(t('launch.error.launchFailed'));
|
|
155
|
+
|
|
156
156
|
return;
|
|
157
157
|
}
|
|
158
158
|
|
|
@@ -160,7 +160,7 @@ function PreparePage() {
|
|
|
160
160
|
nftId
|
|
161
161
|
});
|
|
162
162
|
} catch (err) {
|
|
163
|
-
|
|
163
|
+
_Toast.default.error((0, _util.getAPIResponseError)(err));
|
|
164
164
|
} finally {
|
|
165
165
|
setLaunching(false);
|
|
166
166
|
}
|
|
@@ -251,10 +251,6 @@ function PreparePage() {
|
|
|
251
251
|
confirm: t('redeem.dialog.confirm'),
|
|
252
252
|
success: t('redeem.dialog.success')
|
|
253
253
|
}
|
|
254
|
-
}), error && /*#__PURE__*/_react.default.createElement(_Toast.default, {
|
|
255
|
-
message: error,
|
|
256
|
-
variant: "error",
|
|
257
|
-
onClose: () => setError('')
|
|
258
254
|
}));
|
|
259
255
|
}
|
|
260
256
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/launcher-workflow",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.8",
|
|
4
4
|
"description": "Purchase components for Launcher UI",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
"react": ">=18.1.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@arcblock/did-connect": "^2.
|
|
41
|
-
"@arcblock/icons": "^2.
|
|
42
|
-
"@arcblock/license": "^2.
|
|
43
|
-
"@arcblock/ux": "^2.
|
|
44
|
-
"@blocklet/launcher-constant": "1.7.
|
|
45
|
-
"@blocklet/launcher-layout": "1.7.
|
|
40
|
+
"@arcblock/did-connect": "^2.1.2",
|
|
41
|
+
"@arcblock/icons": "^2.1.2",
|
|
42
|
+
"@arcblock/license": "^2.1.2",
|
|
43
|
+
"@arcblock/ux": "^2.1.2",
|
|
44
|
+
"@blocklet/launcher-constant": "1.7.8",
|
|
45
|
+
"@blocklet/launcher-layout": "1.7.8",
|
|
46
46
|
"@emotion/react": "^11.9.0",
|
|
47
47
|
"@emotion/styled": "^11.8.1",
|
|
48
48
|
"@mui/icons-material": "^5.6.2",
|
|
49
49
|
"@mui/lab": "^5.0.0-alpha.81",
|
|
50
50
|
"@mui/material": "^5.6.4",
|
|
51
51
|
"@mui/styles": "^5.6.2",
|
|
52
|
-
"@ocap/util": "^1.16.
|
|
52
|
+
"@ocap/util": "^1.16.9",
|
|
53
53
|
"@stripe/react-stripe-js": "^1.7.0",
|
|
54
54
|
"@stripe/stripe-js": "^1.22.0",
|
|
55
55
|
"@styled-icons/remix-fill": "^10.18.0",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"babel-plugin-inline-react-svg": "^2.0.1",
|
|
74
74
|
"babel-plugin-styled-components": "^1.10.7"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "373c685d9c5ec7a13c4d0bb444f119629c285e78"
|
|
77
77
|
}
|