@loafmarkets/ui 0.1.125 → 0.1.127
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 +14 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4966,6 +4966,16 @@ var Header = ({
|
|
|
4966
4966
|
return next;
|
|
4967
4967
|
});
|
|
4968
4968
|
}, []);
|
|
4969
|
+
React5.useEffect(() => {
|
|
4970
|
+
const handler = () => {
|
|
4971
|
+
if (LoginPopupComponent) {
|
|
4972
|
+
setLoginPopupInitialView("funding");
|
|
4973
|
+
setShowLoginPopup(true);
|
|
4974
|
+
}
|
|
4975
|
+
};
|
|
4976
|
+
window.addEventListener("loaf:open-funding", handler);
|
|
4977
|
+
return () => window.removeEventListener("loaf:open-funding", handler);
|
|
4978
|
+
}, [LoginPopupComponent]);
|
|
4969
4979
|
const updatePortfolioArrow = React5.useCallback(() => {
|
|
4970
4980
|
const eye = document.getElementById("portfolio-eye-toggle");
|
|
4971
4981
|
const pill = portfolioPillRef.current;
|
|
@@ -5994,7 +6004,7 @@ var PortfolioEyeButton = styled25__default.default.button`
|
|
|
5994
6004
|
justify-content: center;
|
|
5995
6005
|
color: ${(p) => p.$active ? "#D4AF37" : "rgba(255,255,255,0.5)"};
|
|
5996
6006
|
transition: all 0.2s ease;
|
|
5997
|
-
margin-right:
|
|
6007
|
+
margin-right: 10px;
|
|
5998
6008
|
|
|
5999
6009
|
&:hover {
|
|
6000
6010
|
background: rgba(212, 175, 55, 0.2);
|
|
@@ -6003,7 +6013,7 @@ var PortfolioEyeButton = styled25__default.default.button`
|
|
|
6003
6013
|
|
|
6004
6014
|
@media (max-width: 768px) {
|
|
6005
6015
|
padding: 4px;
|
|
6006
|
-
margin-right:
|
|
6016
|
+
margin-right: 6px;
|
|
6007
6017
|
}
|
|
6008
6018
|
`;
|
|
6009
6019
|
var DepositButton = styled25__default.default.button`
|
|
@@ -6016,7 +6026,8 @@ var DepositButton = styled25__default.default.button`
|
|
|
6016
6026
|
font-weight: 600;
|
|
6017
6027
|
cursor: pointer;
|
|
6018
6028
|
transition: background 0.15s;
|
|
6019
|
-
margin-
|
|
6029
|
+
margin-left: 4px;
|
|
6030
|
+
margin-right: 12px;
|
|
6020
6031
|
white-space: nowrap;
|
|
6021
6032
|
|
|
6022
6033
|
&:hover {
|