@aptos-labs/wallet-adapter-ant-design 0.0.1 → 0.0.3
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/README.md +0 -0
- package/dist/index.css +6 -0
- package/dist/index.js +1 -2
- package/dist/index.mjs +1 -2
- package/package.json +1 -1
- package/src/WalletSelector.tsx +2 -6
- package/src/styles.css +7 -0
package/README.md
ADDED
|
File without changes
|
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -56,13 +56,12 @@ function WalletSelector() {
|
|
|
56
56
|
children: [
|
|
57
57
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.Button, {
|
|
58
58
|
className: "wallet-button",
|
|
59
|
-
style: { backgroundColor: "#3F67FF", color: "white" },
|
|
60
59
|
onClick: () => onWalletButtonClick(),
|
|
61
60
|
children: connected ? truncateAddress(account == null ? void 0 : account.address) : "Connect Wallet"
|
|
62
61
|
}),
|
|
63
62
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.Modal, {
|
|
64
63
|
title: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
65
|
-
|
|
64
|
+
className: "wallet-modal-title",
|
|
66
65
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
67
66
|
children: "Connect Wallet"
|
|
68
67
|
})
|
package/dist/index.mjs
CHANGED
|
@@ -33,13 +33,12 @@ function WalletSelector() {
|
|
|
33
33
|
children: [
|
|
34
34
|
/* @__PURE__ */ jsx(Button, {
|
|
35
35
|
className: "wallet-button",
|
|
36
|
-
style: { backgroundColor: "#3F67FF", color: "white" },
|
|
37
36
|
onClick: () => onWalletButtonClick(),
|
|
38
37
|
children: connected ? truncateAddress(account == null ? void 0 : account.address) : "Connect Wallet"
|
|
39
38
|
}),
|
|
40
39
|
/* @__PURE__ */ jsx(Modal, {
|
|
41
40
|
title: /* @__PURE__ */ jsx("div", {
|
|
42
|
-
|
|
41
|
+
className: "wallet-modal-title",
|
|
43
42
|
children: /* @__PURE__ */ jsx("span", {
|
|
44
43
|
children: "Connect Wallet"
|
|
45
44
|
})
|
package/package.json
CHANGED
package/src/WalletSelector.tsx
CHANGED
|
@@ -27,16 +27,12 @@ export function WalletSelector() {
|
|
|
27
27
|
|
|
28
28
|
return (
|
|
29
29
|
<>
|
|
30
|
-
<Button
|
|
31
|
-
className="wallet-button"
|
|
32
|
-
style={{ backgroundColor: "#3F67FF", color: "white" }}
|
|
33
|
-
onClick={() => onWalletButtonClick()}
|
|
34
|
-
>
|
|
30
|
+
<Button className="wallet-button" onClick={() => onWalletButtonClick()}>
|
|
35
31
|
{connected ? truncateAddress(account?.address) : "Connect Wallet"}
|
|
36
32
|
</Button>
|
|
37
33
|
<Modal
|
|
38
34
|
title={
|
|
39
|
-
<div
|
|
35
|
+
<div className="wallet-modal-title">
|
|
40
36
|
<span>Connect Wallet</span>
|
|
41
37
|
</div>
|
|
42
38
|
}
|