@blocklet/launcher-workflow 1.7.6 → 1.7.9

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.
Files changed (2) hide show
  1. package/lib/prepare.js +3 -7
  2. 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
- setError(t('launch.error.launchFailed'));
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
- setError((0, _util.getAPIResponseError)(err));
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.6",
3
+ "version": "1.7.9",
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.0.7",
41
- "@arcblock/icons": "^2.0.7",
42
- "@arcblock/license": "^2.0.7",
43
- "@arcblock/ux": "^2.0.7",
44
- "@blocklet/launcher-constant": "1.7.6",
45
- "@blocklet/launcher-layout": "1.7.6",
40
+ "@arcblock/did-connect": "^2.1.5",
41
+ "@arcblock/icons": "^2.1.5",
42
+ "@arcblock/license": "^2.1.5",
43
+ "@arcblock/ux": "^2.1.5",
44
+ "@blocklet/launcher-constant": "1.7.9",
45
+ "@blocklet/launcher-layout": "1.7.9",
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.9",
52
+ "@ocap/util": "^1.16.15",
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": "f18419913783d6912b4390b7dcc9aad33c4187c7"
76
+ "gitHead": "41fe60a8e93ee52acca95e05c7e3f806bf70d253"
77
77
  }