@dhedge/trading-widget 5.3.0 → 5.3.1
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/index.js
CHANGED
|
@@ -11988,18 +11988,21 @@ const GS = (e) => {
|
|
|
11988
11988
|
return { disabled: n, label: a, handleTrade: r, isWrongNetwork: e, isLoading: o };
|
|
11989
11989
|
}, al = ({
|
|
11990
11990
|
highlighted: e,
|
|
11991
|
-
className: t
|
|
11991
|
+
className: t,
|
|
11992
|
+
onClick: n
|
|
11992
11993
|
}) => {
|
|
11993
|
-
const { ActionButton:
|
|
11994
|
-
|
|
11995
|
-
|
|
11994
|
+
const { ActionButton: a = Y } = R(), { handleTrade: r, disabled: o, label: i, isWrongNetwork: l, isLoading: c } = jx(), d = () => {
|
|
11995
|
+
n?.(), r();
|
|
11996
|
+
};
|
|
11997
|
+
return l ? null : /* @__PURE__ */ s(
|
|
11998
|
+
a,
|
|
11996
11999
|
{
|
|
11997
|
-
onClick:
|
|
11998
|
-
disabled:
|
|
12000
|
+
onClick: d,
|
|
12001
|
+
disabled: o,
|
|
11999
12002
|
highlighted: e,
|
|
12000
12003
|
className: t,
|
|
12001
|
-
loading:
|
|
12002
|
-
children:
|
|
12004
|
+
loading: c,
|
|
12005
|
+
children: i
|
|
12003
12006
|
}
|
|
12004
12007
|
);
|
|
12005
12008
|
}, qx = ({ error: e, onCancel: t }) => {
|
|
@@ -12021,7 +12024,7 @@ const GS = (e) => {
|
|
|
12021
12024
|
e.hint && /* @__PURE__ */ s("p", { className: "dtw-text-sm dtw-text-[color:var(--panel-secondary-content-color)]", children: e.hint })
|
|
12022
12025
|
] })
|
|
12023
12026
|
] }),
|
|
12024
|
-
/* @__PURE__ */ s(al, {})
|
|
12027
|
+
/* @__PURE__ */ s(al, { onClick: t })
|
|
12025
12028
|
] });
|
|
12026
12029
|
}, Yx = Pe.filter(
|
|
12027
12030
|
({ type: e }) => e === "error"
|
|
@@ -14320,7 +14323,6 @@ const ll = (e) => ({
|
|
|
14320
14323
|
}
|
|
14321
14324
|
),
|
|
14322
14325
|
/* @__PURE__ */ m(hx, { children: [
|
|
14323
|
-
/* @__PURE__ */ s(Qx, { type: F.ERROR_NOTIFICATION }),
|
|
14324
14326
|
/* @__PURE__ */ s(gx, { type: F.TERMS_OF_USE }),
|
|
14325
14327
|
/* @__PURE__ */ s(fx, { type: F.HIGH_SLIPPAGE }),
|
|
14326
14328
|
/* @__PURE__ */ s(Ix, { type: F.TOKEN_SELECT, searchQuery: "" }),
|
|
@@ -14328,7 +14330,8 @@ const ll = (e) => ({
|
|
|
14328
14330
|
/* @__PURE__ */ s(Vx, { type: F.TRADING }),
|
|
14329
14331
|
/* @__PURE__ */ s(R0, { type: F.LIMIT_SELLS }),
|
|
14330
14332
|
/* @__PURE__ */ s(q0, { type: F.LIMIT_ORDER_WITHDRAW }),
|
|
14331
|
-
/* @__PURE__ */ s(oI, { type: F.WITHDRAW_STEPPER })
|
|
14333
|
+
/* @__PURE__ */ s(oI, { type: F.WITHDRAW_STEPPER }),
|
|
14334
|
+
/* @__PURE__ */ s(Qx, { type: F.ERROR_NOTIFICATION })
|
|
14332
14335
|
] })
|
|
14333
14336
|
] });
|
|
14334
14337
|
}, FI = ({
|
package/package.json
CHANGED
package/trading-widget/components/withdraw/complete-step/button/claim-button/claim-button.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import type { ActionButtonProps } from '../../../../../components/common';
|
|
3
|
-
|
|
3
|
+
interface ClaimButtonProps extends ActionButtonProps {
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const ClaimButton: FC<ClaimButtonProps>;
|
|
7
|
+
export {};
|