@aptos-labs/wallet-adapter-mui-design 0.1.1 → 0.2.0
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/CHANGELOG.md +14 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/src/WalletButton.tsx +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @aptos-labs/wallet-adapter-mui-design
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- be2e1ac: enable ans name display on mui package
|
|
8
|
+
|
|
9
|
+
## 0.1.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 03eb0f5: Define core package version to use
|
|
14
|
+
- Updated dependencies [03eb0f5]
|
|
15
|
+
- @aptos-labs/wallet-adapter-react@1.0.3
|
|
16
|
+
|
|
3
17
|
## 0.1.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -175,7 +175,7 @@ function WalletButton({
|
|
|
175
175
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material2.Typography, {
|
|
176
176
|
noWrap: true,
|
|
177
177
|
ml: 2,
|
|
178
|
-
children: truncateAddress(account == null ? void 0 : account.address)
|
|
178
|
+
children: (account == null ? void 0 : account.ansName) ? account == null ? void 0 : account.ansName : truncateAddress(account == null ? void 0 : account.address)
|
|
179
179
|
})
|
|
180
180
|
]
|
|
181
181
|
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
package/dist/index.mjs
CHANGED
|
@@ -156,7 +156,7 @@ function WalletButton({
|
|
|
156
156
|
/* @__PURE__ */ jsx2(Typography, {
|
|
157
157
|
noWrap: true,
|
|
158
158
|
ml: 2,
|
|
159
|
-
children: truncateAddress(account == null ? void 0 : account.address)
|
|
159
|
+
children: (account == null ? void 0 : account.ansName) ? account == null ? void 0 : account.ansName : truncateAddress(account == null ? void 0 : account.address)
|
|
160
160
|
})
|
|
161
161
|
]
|
|
162
162
|
}) : /* @__PURE__ */ jsxs2(Fragment, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aptos-labs/wallet-adapter-mui-design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Aptos Wallet Adapter mui design",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@aptos-labs/wallet-adapter-tsconfig": "0.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@aptos-labs/wallet-adapter-react": "
|
|
40
|
+
"@aptos-labs/wallet-adapter-react": "1.0.3",
|
|
41
41
|
"@babel/core": "^7.0.0",
|
|
42
42
|
"@emotion/react": "^11.10.5",
|
|
43
43
|
"@emotion/styled": "^11.10.5",
|
package/src/WalletButton.tsx
CHANGED
|
@@ -50,7 +50,9 @@ export default function WalletButton({
|
|
|
50
50
|
sx={{ width: 24, height: 24 }}
|
|
51
51
|
/>
|
|
52
52
|
<Typography noWrap ml={2}>
|
|
53
|
-
{
|
|
53
|
+
{account?.ansName
|
|
54
|
+
? account?.ansName
|
|
55
|
+
: truncateAddress(account?.address!)}
|
|
54
56
|
</Typography>
|
|
55
57
|
</>
|
|
56
58
|
) : (
|