@compass-labs/widgets 0.1.17 → 0.1.18
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/dist/index.js +1 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -27
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2074,33 +2074,7 @@ function EarnAccountGuard({
|
|
|
2074
2074
|
const { isDeployed, isChecking, isCreating, createAccount, error } = useEarnAccount();
|
|
2075
2075
|
const [createError, setCreateError] = react.useState(null);
|
|
2076
2076
|
if (!isConnected) {
|
|
2077
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
2078
|
-
"div",
|
|
2079
|
-
{
|
|
2080
|
-
className: "compass-earn-guard p-6 text-center",
|
|
2081
|
-
style: {
|
|
2082
|
-
backgroundColor: "var(--compass-color-surface)",
|
|
2083
|
-
borderRadius: "var(--compass-border-radius-xl)",
|
|
2084
|
-
fontFamily: "var(--compass-font-family)"
|
|
2085
|
-
},
|
|
2086
|
-
children: [
|
|
2087
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm mb-4", style: { color: "var(--compass-color-text-secondary)" }, children: "Connect your wallet to continue" }),
|
|
2088
|
-
login && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2089
|
-
"button",
|
|
2090
|
-
{
|
|
2091
|
-
onClick: login,
|
|
2092
|
-
className: "px-4 py-2 font-medium transition-colors",
|
|
2093
|
-
style: {
|
|
2094
|
-
backgroundColor: "var(--compass-color-primary)",
|
|
2095
|
-
color: "var(--compass-color-primary-text)",
|
|
2096
|
-
borderRadius: "var(--compass-border-radius-lg)"
|
|
2097
|
-
},
|
|
2098
|
-
children: "Connect Wallet"
|
|
2099
|
-
}
|
|
2100
|
-
)
|
|
2101
|
-
]
|
|
2102
|
-
}
|
|
2103
|
-
);
|
|
2077
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
2104
2078
|
}
|
|
2105
2079
|
if (isChecking) {
|
|
2106
2080
|
if (loadingComponent) {
|