@loafmarkets/ui 0.1.276 → 0.1.277

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.d.mts CHANGED
@@ -612,6 +612,7 @@ type HeaderProps = {
612
612
  onProfileNavigate?: () => void;
613
613
  onOrdersNavigate?: () => void;
614
614
  onWalletNavigate?: () => void;
615
+ onSettingsClick?: () => void;
615
616
  showTradeTab?: boolean;
616
617
  portfolioSummary?: HeaderPortfolioData | null;
617
618
  };
package/dist/index.d.ts CHANGED
@@ -612,6 +612,7 @@ type HeaderProps = {
612
612
  onProfileNavigate?: () => void;
613
613
  onOrdersNavigate?: () => void;
614
614
  onWalletNavigate?: () => void;
615
+ onSettingsClick?: () => void;
615
616
  showTradeTab?: boolean;
616
617
  portfolioSummary?: HeaderPortfolioData | null;
617
618
  };
package/dist/index.js CHANGED
@@ -4940,6 +4940,7 @@ var Header = ({
4940
4940
  onProfileNavigate: _onProfileNavigate,
4941
4941
  onOrdersNavigate: _onOrdersNavigate,
4942
4942
  onWalletNavigate: _onWalletNavigate,
4943
+ onSettingsClick,
4943
4944
  showTradeTab = true,
4944
4945
  portfolioSummary
4945
4946
  }) => {
@@ -5463,6 +5464,18 @@ var Header = ({
5463
5464
  children: /* @__PURE__ */ jsxRuntime.jsx(MenuItem, { children: "Add funding" })
5464
5465
  }
5465
5466
  ),
5467
+ onSettingsClick && /* @__PURE__ */ jsxRuntime.jsx(
5468
+ "button",
5469
+ {
5470
+ type: "button",
5471
+ onClick: (event) => {
5472
+ event?.preventDefault();
5473
+ closeMenus();
5474
+ onSettingsClick();
5475
+ },
5476
+ children: /* @__PURE__ */ jsxRuntime.jsx(MenuItem, { children: "Settings" })
5477
+ }
5478
+ ),
5466
5479
  /* @__PURE__ */ jsxRuntime.jsx(
5467
5480
  "button",
5468
5481
  {