@compass-labs/widgets 0.1.16 → 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 +2 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -28
- 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) {
|
|
@@ -3877,7 +3851,7 @@ function MarketSelector({
|
|
|
3877
3851
|
flex: 1,
|
|
3878
3852
|
padding: "calc(var(--compass-spacing-unit, 8px) * 2)",
|
|
3879
3853
|
backgroundColor: marketType === type.value ? "var(--compass-color-primary, #6366f1)" : "var(--compass-color-surface, #12121a)",
|
|
3880
|
-
color: marketType === type.value ? "var(--compass-color-primary-
|
|
3854
|
+
color: marketType === type.value ? "var(--compass-color-primary-text, white)" : "var(--compass-color-text, #e4e4e7)",
|
|
3881
3855
|
border: "none",
|
|
3882
3856
|
cursor: "pointer",
|
|
3883
3857
|
fontSize: "var(--compass-font-size-sm, 14px)",
|