@loafmarkets/ui 0.1.133 → 0.1.134
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 +12 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11979,7 +11979,16 @@ function PortfolioActivityPanel({
|
|
|
11979
11979
|
"%"
|
|
11980
11980
|
] })
|
|
11981
11981
|
] }),
|
|
11982
|
-
onClosePosition && /* @__PURE__ */ jsx(PositionsCell, {
|
|
11982
|
+
onClosePosition && /* @__PURE__ */ jsx(PositionsCell, { children: /* @__PURE__ */ jsxs(CloseActions, { children: [
|
|
11983
|
+
/* @__PURE__ */ jsx(CloseBtn2, { onClick: (e) => {
|
|
11984
|
+
e.stopPropagation();
|
|
11985
|
+
onClosePosition(pos.tokenName, "market", pos.quantity, pos.marketPrice);
|
|
11986
|
+
}, children: "Market" }),
|
|
11987
|
+
/* @__PURE__ */ jsx(CloseBtn2, { onClick: (e) => {
|
|
11988
|
+
e.stopPropagation();
|
|
11989
|
+
onClosePosition(pos.tokenName, "limit", pos.quantity, pos.marketPrice);
|
|
11990
|
+
}, children: "Limit" })
|
|
11991
|
+
] }) })
|
|
11983
11992
|
] }, pos.tokenName);
|
|
11984
11993
|
}),
|
|
11985
11994
|
closeAllOpen && onClosePosition && /* @__PURE__ */ jsx(CloseAllOverlay, { onClick: () => setCloseAllOpen(false), children: /* @__PURE__ */ jsxs(CloseAllModal, { onClick: (e) => e.stopPropagation(), children: [
|
|
@@ -12608,12 +12617,12 @@ var CancelConfirmProceed = styled19.button`
|
|
|
12608
12617
|
cursor: not-allowed;
|
|
12609
12618
|
}
|
|
12610
12619
|
`;
|
|
12611
|
-
styled19.div`
|
|
12620
|
+
var CloseActions = styled19.div`
|
|
12612
12621
|
display: flex;
|
|
12613
12622
|
gap: 0.35rem;
|
|
12614
12623
|
align-items: center;
|
|
12615
12624
|
`;
|
|
12616
|
-
styled19.button`
|
|
12625
|
+
var CloseBtn2 = styled19.button`
|
|
12617
12626
|
background: transparent;
|
|
12618
12627
|
border: 1px solid rgba(230, 200, 126, 0.25);
|
|
12619
12628
|
border-radius: 4px;
|