@loafmarkets/ui 0.1.275 → 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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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
|
{
|
|
@@ -15056,7 +15069,7 @@ function PropertyBuy({
|
|
|
15056
15069
|
const statusColor = STATUS_COLOR2[ipoStatus] ?? "#D4AF37";
|
|
15057
15070
|
const displayStatusLabel = isPrivateClient && ipoStatus !== "LIVE" ? "Private Client Access" : statusLabel;
|
|
15058
15071
|
const displayStatusColor = isPrivateClient && ipoStatus !== "LIVE" ? "#D4AF37" : statusColor;
|
|
15059
|
-
const rawSpend = manualOrderAmount !== null ? manualOrderAmount : Math.round(sliderValue / 100 * availableBalance);
|
|
15072
|
+
const rawSpend = manualOrderAmount !== null ? manualOrderAmount : sliderValue === 100 ? Math.floor(availableBalance / (1 + feeRate)) : Math.round(sliderValue / 100 * availableBalance);
|
|
15060
15073
|
const tokenQuantity = Math.floor(rawSpend / tokenPrice);
|
|
15061
15074
|
const feeInUsd = tokenQuantity * tokenPrice * feeRate;
|
|
15062
15075
|
const orderTotal = tokenQuantity * tokenPrice + feeInUsd;
|