@orderly.network/ui-positions 2.8.3 → 2.8.4-alpha.0

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.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) => {