@orderly.network/ui-tpsl 2.11.1 → 2.11.2-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.js CHANGED
@@ -18,6 +18,7 @@ var OrderInfo = (props) => {
18
18
  const { symbol } = order2;
19
19
  const markPrice = hooks.useMarkPrice(symbol);
20
20
  const indexPrice = hooks.useIndexPrice(symbol);
21
+ const marginModeLabel = props.marginMode === types.MarginMode.ISOLATED ? t("marginMode.isolated") : props.marginMode === types.MarginMode.CROSS ? t("marginMode.cross") : void 0;
21
22
  const leverage = hooks.useLeverageBySymbol(
22
23
  symbolLeverage ? void 0 : symbol,
23
24
  props.marginMode
@@ -54,12 +55,12 @@ var OrderInfo = (props) => {
54
55
  }
55
56
  )
56
57
  ] }),
57
- props.marginMode && /* @__PURE__ */ jsxRuntime.jsx(
58
+ marginModeLabel && /* @__PURE__ */ jsxRuntime.jsx(
58
59
  ui.Text,
59
60
  {
60
61
  size: "2xs",
61
62
  className: "oui-h-[18px] oui-rounded oui-bg-base-7 oui-px-2 oui-font-semibold oui-text-base-contrast-36",
62
- children: ui.capitalizeFirstLetter(props.marginMode)
63
+ children: marginModeLabel
63
64
  }
64
65
  ),
65
66
  /* @__PURE__ */ jsxRuntime.jsxs(