@arcblock/ux 2.9.62 → 2.9.63
Sign up to get free protection for your applications and to get access to all the features.
@@ -111,7 +111,7 @@ const DidAddress = /*#__PURE__*/forwardRef(({
|
|
111
111
|
component: "span",
|
112
112
|
className: "did-address-text",
|
113
113
|
sx: {
|
114
|
-
cursor: copyable ? '
|
114
|
+
cursor: copyable ? 'unset' : 'pointer'
|
115
115
|
},
|
116
116
|
onDoubleClick: copyable ? noop : onCopy,
|
117
117
|
children: /*#__PURE__*/_jsx(CompactText, {
|
package/es/DID/index.js
CHANGED
@@ -135,7 +135,9 @@ const DID = /*#__PURE__*/forwardRef(({
|
|
135
135
|
const closeQrCode = useMemoizedFn(() => {
|
136
136
|
setOpen(false);
|
137
137
|
});
|
138
|
-
const openQrCode = useMemoizedFn(
|
138
|
+
const openQrCode = useMemoizedFn(e => {
|
139
|
+
e.stopPropagation();
|
140
|
+
e.preventDefault();
|
139
141
|
setOpen(true);
|
140
142
|
});
|
141
143
|
const downloadUrl = useCreation(() => {
|
@@ -130,7 +130,7 @@ const DidAddress = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
130
130
|
component: "span",
|
131
131
|
className: "did-address-text",
|
132
132
|
sx: {
|
133
|
-
cursor: copyable ? '
|
133
|
+
cursor: copyable ? 'unset' : 'pointer'
|
134
134
|
},
|
135
135
|
onDoubleClick: copyable ? _noop.default : onCopy,
|
136
136
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_compactText.default, {
|
package/lib/DID/index.js
CHANGED
@@ -151,7 +151,9 @@ const DID = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
151
151
|
const closeQrCode = (0, _ahooks.useMemoizedFn)(() => {
|
152
152
|
setOpen(false);
|
153
153
|
});
|
154
|
-
const openQrCode = (0, _ahooks.useMemoizedFn)(
|
154
|
+
const openQrCode = (0, _ahooks.useMemoizedFn)(e => {
|
155
|
+
e.stopPropagation();
|
156
|
+
e.preventDefault();
|
155
157
|
setOpen(true);
|
156
158
|
});
|
157
159
|
const downloadUrl = (0, _ahooks.useCreation)(() => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcblock/ux",
|
3
|
-
"version": "2.9.
|
3
|
+
"version": "2.9.63",
|
4
4
|
"description": "Common used react components for arcblock products",
|
5
5
|
"keywords": [
|
6
6
|
"react",
|
@@ -358,12 +358,12 @@
|
|
358
358
|
"@mui/material": "^5.15.0",
|
359
359
|
"react": ">=18.2.0"
|
360
360
|
},
|
361
|
-
"gitHead": "
|
361
|
+
"gitHead": "e5e083300891c1ff349c653a70229ea6ba3f8b24",
|
362
362
|
"dependencies": {
|
363
363
|
"@arcblock/did-motif": "^1.1.13",
|
364
|
-
"@arcblock/icons": "^2.9.
|
365
|
-
"@arcblock/nft-display": "^2.9.
|
366
|
-
"@arcblock/react-hooks": "^2.9.
|
364
|
+
"@arcblock/icons": "^2.9.63",
|
365
|
+
"@arcblock/nft-display": "^2.9.63",
|
366
|
+
"@arcblock/react-hooks": "^2.9.63",
|
367
367
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
368
368
|
"@emotion/react": "^11.10.4",
|
369
369
|
"@emotion/styled": "^11.10.4",
|
package/src/DID/index.jsx
CHANGED
@@ -127,7 +127,9 @@ const DID = forwardRef(({ did, showAvatar, showQrcode, chainId, locale, ...rest
|
|
127
127
|
const closeQrCode = useMemoizedFn(() => {
|
128
128
|
setOpen(false);
|
129
129
|
});
|
130
|
-
const openQrCode = useMemoizedFn(() => {
|
130
|
+
const openQrCode = useMemoizedFn((e) => {
|
131
|
+
e.stopPropagation();
|
132
|
+
e.preventDefault();
|
131
133
|
setOpen(true);
|
132
134
|
});
|
133
135
|
|