tek-wallet 0.0.633 → 0.0.635

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.
@@ -10,6 +10,7 @@ export interface SendExternalTokenWithdrawnProps extends Omit<ConfirmLayoutProps
10
10
  onStart?: () => void;
11
11
  children: React.ReactNode;
12
12
  trigger: React.ReactNode;
13
+ btnConfirm?: React.ReactNode;
13
14
  }
14
- declare const SendExternalTokenWithdrawn: ({ sendExternalData, onSuccess, onStart, children, trigger, }: SendExternalTokenWithdrawnProps) => import("react/jsx-runtime").JSX.Element;
15
+ declare const SendExternalTokenWithdrawn: ({ sendExternalData, onSuccess, onStart, children, trigger, btnConfirm, }: SendExternalTokenWithdrawnProps) => import("react/jsx-runtime").JSX.Element;
15
16
  export default SendExternalTokenWithdrawn;
@@ -94,7 +94,7 @@ var send_external_service_1 = __importDefault(require("../../../services/axios/s
94
94
  var type_1 = require("../../../services/axios/get-activities-service/type");
95
95
  var transactionSlug = type_1.TransactionSlug.Withdrawn;
96
96
  var SendExternalTokenWithdrawn = function (_a) {
97
- var sendExternalData = _a.sendExternalData, onSuccess = _a.onSuccess, onStart = _a.onStart, children = _a.children, trigger = _a.trigger;
97
+ var sendExternalData = _a.sendExternalData, onSuccess = _a.onSuccess, onStart = _a.onStart, children = _a.children, trigger = _a.trigger, btnConfirm = _a.btnConfirm;
98
98
  var _b = (0, react_1.useState)(Button_1.BUTTON_STATUS.ENABLED), buttonStatus = _b[0], setButtonStatus = _b[1];
99
99
  var network = sendExternalData.network;
100
100
  var handleSendExternalTokenWithdrawn = function (passcode) { return __awaiter(void 0, void 0, void 0, function () {
@@ -128,6 +128,6 @@ var SendExternalTokenWithdrawn = function (_a) {
128
128
  }
129
129
  });
130
130
  }); };
131
- return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(ConfirmLayout_1.default, { trigger: trigger, action: transactionSlug, confirmAction: (0, jsx_runtime_1.jsx)(ConfirmByPasscode_1.default, { action: transactionSlug, onConfirmSuccess: handleSendExternalTokenWithdrawn, children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { status: buttonStatus, children: "Confirm" }) }), children: children }) }));
131
+ return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(ConfirmLayout_1.default, { trigger: trigger, action: transactionSlug, confirmAction: (0, jsx_runtime_1.jsx)(ConfirmByPasscode_1.default, { action: transactionSlug, onConfirmSuccess: handleSendExternalTokenWithdrawn, children: btnConfirm !== null && btnConfirm !== void 0 ? btnConfirm : ((0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, status: buttonStatus, children: "Confirm" })) }), children: children }) }));
132
132
  };
133
133
  exports.default = SendExternalTokenWithdrawn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.633",
3
+ "version": "0.0.635",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",