@orderly.network/ui-positions 2.8.3 → 2.8.4
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 +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
package/dist/index.mjs
CHANGED
|
@@ -4726,8 +4726,11 @@ var MobileLiquidationWidget = (props) => {
|
|
|
4726
4726
|
return /* @__PURE__ */ jsx(MobileLiquidation, { classNames, ...state });
|
|
4727
4727
|
};
|
|
4728
4728
|
var CloseAllPositions = (props) => {
|
|
4729
|
-
const { onCloseAll, hasOpenPositions, isClosing, className, style } = props;
|
|
4729
|
+
const { onCloseAll, hasOpenPositions, isClosing, className, style, symbol } = props;
|
|
4730
4730
|
const { t } = useTranslation();
|
|
4731
|
+
if (symbol !== void 0) {
|
|
4732
|
+
return /* @__PURE__ */ jsx(Fragment, {});
|
|
4733
|
+
}
|
|
4731
4734
|
return /* @__PURE__ */ jsx(
|
|
4732
4735
|
Button,
|
|
4733
4736
|
{
|
|
@@ -4813,7 +4816,8 @@ var useCloseAllPositionsScript = (options) => {
|
|
|
4813
4816
|
onCloseAll,
|
|
4814
4817
|
hasOpenPositions,
|
|
4815
4818
|
isClosing: isMutating,
|
|
4816
|
-
openPositionsCount: openPositions.length
|
|
4819
|
+
openPositionsCount: openPositions.length,
|
|
4820
|
+
symbol
|
|
4817
4821
|
};
|
|
4818
4822
|
};
|
|
4819
4823
|
var CloseAllPositionsWidget = (props) => {
|