@blocklet/payment-react 1.18.9 → 1.18.11
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/es/checkout/donate.js +25 -14
- package/lib/checkout/donate.js +5 -0
- package/package.json +6 -6
- package/src/checkout/donate.tsx +7 -1
package/es/checkout/donate.js
CHANGED
|
@@ -180,22 +180,33 @@ function SupporterAvatar({
|
|
|
180
180
|
if (customersNum === 0)
|
|
181
181
|
return null;
|
|
182
182
|
return /* @__PURE__ */ jsxs(Stack, { flexDirection: "row", justifyContent: "center", alignItems: "center", children: [
|
|
183
|
-
/* @__PURE__ */ jsx(
|
|
184
|
-
|
|
183
|
+
/* @__PURE__ */ jsx(
|
|
184
|
+
AvatarGroup,
|
|
185
185
|
{
|
|
186
|
-
|
|
187
|
-
supporter.customer?.did,
|
|
188
|
-
supporter?.updated_at ? new Date(supporter.updated_at).toISOString() : "",
|
|
189
|
-
24
|
|
190
|
-
),
|
|
191
|
-
alt: supporter.customer?.name,
|
|
186
|
+
max: 5,
|
|
192
187
|
sx: {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
188
|
+
"& .MuiAvatar-root": {
|
|
189
|
+
backgroundColor: "background.paper"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
children: customers.slice(0, 5).map((supporter) => /* @__PURE__ */ jsx(
|
|
193
|
+
Avatar,
|
|
194
|
+
{
|
|
195
|
+
src: getCustomerAvatar(
|
|
196
|
+
supporter.customer?.did,
|
|
197
|
+
supporter?.updated_at ? new Date(supporter.updated_at).toISOString() : "",
|
|
198
|
+
24
|
|
199
|
+
),
|
|
200
|
+
alt: supporter.customer?.name,
|
|
201
|
+
sx: {
|
|
202
|
+
width: "24px",
|
|
203
|
+
height: "24px"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
supporter.customer?.id
|
|
207
|
+
))
|
|
208
|
+
}
|
|
209
|
+
),
|
|
199
210
|
/* @__PURE__ */ jsx(
|
|
200
211
|
Box,
|
|
201
212
|
{
|
package/lib/checkout/donate.js
CHANGED
|
@@ -181,6 +181,11 @@ function SupporterAvatar({
|
|
|
181
181
|
alignItems: "center",
|
|
182
182
|
children: [/* @__PURE__ */(0, _jsxRuntime.jsx)(_material.AvatarGroup, {
|
|
183
183
|
max: 5,
|
|
184
|
+
sx: {
|
|
185
|
+
"& .MuiAvatar-root": {
|
|
186
|
+
backgroundColor: "background.paper"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
184
189
|
children: customers.slice(0, 5).map(supporter => /* @__PURE__ */(0, _jsxRuntime.jsx)(_material.Avatar, {
|
|
185
190
|
src: (0, _util.getCustomerAvatar)(supporter.customer?.did, supporter?.updated_at ? new Date(supporter.updated_at).toISOString() : "", 24),
|
|
186
191
|
alt: supporter.customer?.name,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/payment-react",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.11",
|
|
4
4
|
"description": "Reusable react components for payment kit v2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@arcblock/did-connect": "^2.11.
|
|
57
|
-
"@arcblock/ux": "^2.11.
|
|
56
|
+
"@arcblock/did-connect": "^2.11.48",
|
|
57
|
+
"@arcblock/ux": "^2.11.48",
|
|
58
58
|
"@arcblock/ws": "^1.19.10",
|
|
59
|
-
"@blocklet/ui-react": "^2.11.
|
|
59
|
+
"@blocklet/ui-react": "^2.11.48",
|
|
60
60
|
"@mui/icons-material": "^5.16.6",
|
|
61
61
|
"@mui/lab": "^5.0.0-alpha.173",
|
|
62
62
|
"@mui/material": "^5.16.6",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@babel/core": "^7.25.2",
|
|
93
93
|
"@babel/preset-env": "^7.25.2",
|
|
94
94
|
"@babel/preset-react": "^7.24.7",
|
|
95
|
-
"@blocklet/payment-types": "1.18.
|
|
95
|
+
"@blocklet/payment-types": "1.18.11",
|
|
96
96
|
"@storybook/addon-essentials": "^7.6.20",
|
|
97
97
|
"@storybook/addon-interactions": "^7.6.20",
|
|
98
98
|
"@storybook/addon-links": "^7.6.20",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"vite-plugin-babel": "^1.2.0",
|
|
124
124
|
"vite-plugin-node-polyfills": "^0.21.0"
|
|
125
125
|
},
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "370cb327400359ab5972ef60316ccd7fc86c174e"
|
|
127
127
|
}
|
package/src/checkout/donate.tsx
CHANGED
|
@@ -249,7 +249,13 @@ function SupporterAvatar({
|
|
|
249
249
|
if (customersNum === 0) return null;
|
|
250
250
|
return (
|
|
251
251
|
<Stack flexDirection="row" justifyContent="center" alignItems="center">
|
|
252
|
-
<AvatarGroup
|
|
252
|
+
<AvatarGroup
|
|
253
|
+
max={5}
|
|
254
|
+
sx={{
|
|
255
|
+
'& .MuiAvatar-root': {
|
|
256
|
+
backgroundColor: 'background.paper',
|
|
257
|
+
},
|
|
258
|
+
}}>
|
|
253
259
|
{customers.slice(0, 5).map((supporter) => (
|
|
254
260
|
<Avatar
|
|
255
261
|
src={getCustomerAvatar(
|