@loafmarkets/ui 0.1.248 → 0.1.249
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 +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13868,7 +13868,7 @@ function PortfolioActivityPanel({
|
|
|
13868
13868
|
"PNL (%) ",
|
|
13869
13869
|
posSortKey === "pnl" && (posSortAsc ? "\u2191" : "\u2193")
|
|
13870
13870
|
] }),
|
|
13871
|
-
onClosePosition && /* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, { children: /* @__PURE__ */ jsxRuntime.jsx(CloseAllHeaderBtn, { onClick: () => setCloseAllOpen(true), children: "
|
|
13871
|
+
onClosePosition && /* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, { children: /* @__PURE__ */ jsxRuntime.jsx(CloseAllHeaderBtn, { onClick: () => setCloseAllOpen(true), children: "Sell All" }) })
|
|
13872
13872
|
] }),
|
|
13873
13873
|
pageSlice(sortedPositions).map((pos) => {
|
|
13874
13874
|
const currentValue = pos.quantity * pos.marketPrice;
|
|
@@ -13905,25 +13905,25 @@ function PortfolioActivityPanel({
|
|
|
13905
13905
|
/* @__PURE__ */ jsxRuntime.jsx(CloseBtn2, { onClick: (e) => {
|
|
13906
13906
|
e.stopPropagation();
|
|
13907
13907
|
onClosePosition(pos.tokenName, "market", pos.quantity, pos.marketPrice);
|
|
13908
|
-
}, children: "Market" }),
|
|
13908
|
+
}, children: "Market Sell" }),
|
|
13909
13909
|
/* @__PURE__ */ jsxRuntime.jsx(CloseBtn2, { onClick: (e) => {
|
|
13910
13910
|
e.stopPropagation();
|
|
13911
13911
|
onClosePosition(pos.tokenName, "limit", pos.quantity, pos.marketPrice);
|
|
13912
|
-
}, children: "Limit" })
|
|
13912
|
+
}, children: "Limit Sell" })
|
|
13913
13913
|
] }) })
|
|
13914
13914
|
] }, pos.tokenName);
|
|
13915
13915
|
}),
|
|
13916
13916
|
closeAllOpen && onClosePosition && /* @__PURE__ */ jsxRuntime.jsx(CloseAllOverlay, { onClick: () => setCloseAllOpen(false), children: /* @__PURE__ */ jsxRuntime.jsxs(CloseAllModal, { onClick: (e) => e.stopPropagation(), children: [
|
|
13917
13917
|
/* @__PURE__ */ jsxRuntime.jsx(CloseAllModalX, { onClick: () => setCloseAllOpen(false), children: "\xD7" }),
|
|
13918
|
-
/* @__PURE__ */ jsxRuntime.jsx(CloseAllTitle, { children: "Confirm
|
|
13919
|
-
/* @__PURE__ */ jsxRuntime.jsx(CloseAllDesc, { children: "This will
|
|
13918
|
+
/* @__PURE__ */ jsxRuntime.jsx(CloseAllTitle, { children: "Confirm Sell All" }),
|
|
13919
|
+
/* @__PURE__ */ jsxRuntime.jsx(CloseAllDesc, { children: "This will sell all your positions and cancel their associated TP/SL orders." }),
|
|
13920
13920
|
/* @__PURE__ */ jsxRuntime.jsxs(CloseAllOption, { onClick: () => setCloseAllType("market"), children: [
|
|
13921
13921
|
/* @__PURE__ */ jsxRuntime.jsx(CloseAllRadio, { $selected: closeAllType === "market" }),
|
|
13922
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Market
|
|
13922
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Market Sell" })
|
|
13923
13923
|
] }),
|
|
13924
13924
|
/* @__PURE__ */ jsxRuntime.jsxs(CloseAllOption, { onClick: () => setCloseAllType("limit"), children: [
|
|
13925
13925
|
/* @__PURE__ */ jsxRuntime.jsx(CloseAllRadio, { $selected: closeAllType === "limit" }),
|
|
13926
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Limit
|
|
13926
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Limit Sell at Mid Price" })
|
|
13927
13927
|
] }),
|
|
13928
13928
|
/* @__PURE__ */ jsxRuntime.jsxs(CloseAllConfirmBtn, { onClick: () => {
|
|
13929
13929
|
positions.forEach((pos) => onClosePosition(pos.tokenName, closeAllType, pos.quantity, pos.marketPrice));
|
|
@@ -13931,7 +13931,7 @@ function PortfolioActivityPanel({
|
|
|
13931
13931
|
}, children: [
|
|
13932
13932
|
"Confirm ",
|
|
13933
13933
|
closeAllType === "market" ? "Market" : "Limit",
|
|
13934
|
-
"
|
|
13934
|
+
" Sell"
|
|
13935
13935
|
] })
|
|
13936
13936
|
] }) })
|
|
13937
13937
|
] })
|