@blocklet/launcher-workflow 1.9.30 → 1.9.32

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/purchase.js +4 -4
  2. package/package.json +15 -15
package/lib/purchase.js CHANGED
@@ -106,8 +106,8 @@ function PurchasePage(_ref) {
106
106
  }
107
107
  setPaying(true);
108
108
  };
109
- const handlePay = payment => {
110
- if (payment.type === 'fiat' && !userDid) {
109
+ const handlePay = () => {
110
+ if (!userDid) {
111
111
  session.login(() => pay());
112
112
  return;
113
113
  }
@@ -149,7 +149,7 @@ function PurchasePage(_ref) {
149
149
  className: "page-body-article",
150
150
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_submit.default, {
151
151
  disabled: paying,
152
- onConfirm: () => handlePay(paymentMethod),
152
+ onConfirm: handlePay,
153
153
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_compactLayout.default, {
154
154
  onBottomFix: type => setButtonInFix(type === 'fix'),
155
155
  bottom: planLoaded ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
@@ -163,7 +163,7 @@ function PurchasePage(_ref) {
163
163
  },
164
164
  children: t('common.redeem')
165
165
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Button.default, {
166
- onClick: () => handlePay(paymentMethod),
166
+ onClick: handlePay,
167
167
  disabled: paying,
168
168
  variant: "contained",
169
169
  color: "primary",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/launcher-workflow",
3
- "version": "1.9.30",
3
+ "version": "1.9.32",
4
4
  "description": "Purchase components for Launcher UI",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -36,20 +36,20 @@
36
36
  "react": ">=18.1.0"
37
37
  },
38
38
  "dependencies": {
39
- "@arcblock/did-connect": "^2.4.62",
40
- "@arcblock/icons": "^2.4.62",
41
- "@arcblock/license": "^2.4.62",
42
- "@arcblock/ux": "^2.4.62",
43
- "@blocklet/launcher-layout": "1.9.30",
44
- "@blocklet/launcher-util": "1.9.30",
45
- "@blocklet/launcher-ux": "1.9.30",
46
- "@did-pay/react": "^1.9.32",
39
+ "@arcblock/did-connect": "^2.4.65",
40
+ "@arcblock/icons": "^2.4.65",
41
+ "@arcblock/license": "^2.4.65",
42
+ "@arcblock/ux": "^2.4.65",
43
+ "@blocklet/launcher-layout": "1.9.32",
44
+ "@blocklet/launcher-util": "1.9.32",
45
+ "@blocklet/launcher-ux": "1.9.32",
46
+ "@did-pay/react": "^1.9.33",
47
47
  "@emotion/react": "^11.10.5",
48
48
  "@emotion/styled": "^11.10.5",
49
49
  "@mui/icons-material": "^5.11.0",
50
- "@mui/material": "^5.11.2",
51
- "@ocap/util": "^1.18.34",
52
- "@stripe/react-stripe-js": "^1.16.1",
50
+ "@mui/material": "^5.11.4",
51
+ "@ocap/util": "^1.18.35",
52
+ "@stripe/react-stripe-js": "^1.16.2",
53
53
  "@stripe/stripe-js": "^1.46.0",
54
54
  "axios": "^0.26.1",
55
55
  "flat": "^5.0.2",
@@ -58,16 +58,16 @@
58
58
  "lodash.throttle": "^4.1.1",
59
59
  "prop-types": "^15.8.1",
60
60
  "react-lottie-player": "^1.5.4",
61
- "react-router-dom": "^6.6.1",
61
+ "react-router-dom": "^6.6.2",
62
62
  "react-use": "^17.4.0",
63
63
  "url-join": "^4.0.1"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@babel/cli": "^7.20.7",
67
- "@babel/core": "^7.20.7",
67
+ "@babel/core": "^7.20.12",
68
68
  "@babel/preset-env": "^7.20.2",
69
69
  "@babel/preset-react": "^7.18.6",
70
70
  "babel-plugin-inline-react-svg": "^2.0.1"
71
71
  },
72
- "gitHead": "a81e9b61728d885499ab2085b0d1f9a44e2d18d4"
72
+ "gitHead": "8380d5104744f820e5a731cddd20510eb2b2cf0f"
73
73
  }