@loafmarkets/ui 0.1.125 → 0.1.126
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 +10 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -0
- 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;
|