@vechain/vechain-kit 1.7.0 → 1.7.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/dist/index.cjs CHANGED
@@ -6242,7 +6242,7 @@ var AddressDisplay = ({
6242
6242
  // package.json
6243
6243
  var package_default = {
6244
6244
  name: "@vechain/vechain-kit",
6245
- version: "1.7.0",
6245
+ version: "1.7.1",
6246
6246
  private: false,
6247
6247
  homepage: "https://github.com/vechain/vechain-kit",
6248
6248
  repository: "github:vechain/vechain-kit",
@@ -6258,12 +6258,13 @@ var package_default = {
6258
6258
  "LICENSE"
6259
6259
  ],
6260
6260
  scripts: {
6261
- build: "cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup",
6261
+ build: "tsc --noEmit && cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup",
6262
6262
  watch: "cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup --watch",
6263
6263
  clean: "rm -rf dist .turbo",
6264
6264
  lint: "eslint",
6265
6265
  purge: "yarn clean && rm -rf node_modules",
6266
- translate: "dotenv -e .env -- translo-cli"
6266
+ translate: "dotenv -e .env -- translo-cli",
6267
+ typecheck: "tsc --noEmit"
6267
6268
  },
6268
6269
  dependencies: {
6269
6270
  "@adraffy/ens-normalize": "^1.11.0",
@@ -17126,7 +17127,7 @@ var NotificationsContent = ({ setCurrentContent }) => {
17126
17127
  ] });
17127
17128
  };
17128
17129
  var getCategoryColor = (category) => {
17129
- switch (category.toLowerCase()) {
17130
+ switch (category) {
17130
17131
  case "defi":
17131
17132
  return "blue";
17132
17133
  case "games":
@@ -17143,7 +17144,8 @@ var getCategoryColor = (category) => {
17143
17144
  };
17144
17145
  var CategoryLabel = ({ category, ...props }) => {
17145
17146
  const { t } = reactI18next.useTranslation();
17146
- const color = getCategoryColor(category);
17147
+ const categoryKey = category.toLowerCase();
17148
+ const color = getCategoryColor(categoryKey);
17147
17149
  return /* @__PURE__ */ jsxRuntime.jsx(
17148
17150
  react.Tag,
17149
17151
  {
@@ -17152,7 +17154,7 @@ var CategoryLabel = ({ category, ...props }) => {
17152
17154
  borderRadius: "full",
17153
17155
  px: 2,
17154
17156
  ...props,
17155
- children: t(category)
17157
+ children: t(categoryKey)
17156
17158
  }
17157
17159
  );
17158
17160
  };