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