tek-wallet 0.0.459 → 0.0.460

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.
@@ -1,6 +1,12 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.useEventHandler = void 0;
7
+ var jsx_runtime_1 = require("react/jsx-runtime");
8
+ var Formatter_1 = __importDefault(require("../components/ui/Formatter"));
9
+ var Text_1 = __importDefault(require("../components/ui/Text"));
4
10
  var useEventHandler = function () {
5
11
  var handler = function (messageEvent) {
6
12
  if (!messageEvent)
@@ -25,7 +31,7 @@ var useEventHandler = function () {
25
31
  notificationType = "info";
26
32
  }
27
33
  return {
28
- message: "".concat(type, " ").concat(amount, " ").concat(currency, " is ").concat(status),
34
+ message: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: { textTransform: "capitalize" }, children: type }), " ", (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: amount, unit: currency }), " is", " ", status] })),
29
35
  type: notificationType,
30
36
  id: "".concat(transactionId, "-").concat(status),
31
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.459",
3
+ "version": "0.0.460",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",