@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.mjs CHANGED
@@ -4940,6 +4940,16 @@ var Header = ({
4940
4940
  return next;
4941
4941
  });
4942
4942
  }, []);
4943
+ useEffect(() => {
4944
+ const handler = () => {
4945
+ if (LoginPopupComponent) {
4946
+ setLoginPopupInitialView("funding");
4947
+ setShowLoginPopup(true);
4948
+ }
4949
+ };
4950
+ window.addEventListener("loaf:open-funding", handler);
4951
+ return () => window.removeEventListener("loaf:open-funding", handler);
4952
+ }, [LoginPopupComponent]);
4943
4953
  const updatePortfolioArrow = useCallback(() => {
4944
4954
  const eye = document.getElementById("portfolio-eye-toggle");
4945
4955
  const pill = portfolioPillRef.current;