px-react-ui-components 1.0.14 → 1.0.15

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.
@@ -22,8 +22,8 @@ const CountBlock = ({
22
22
  className: _MyTableModule.default.rowsCount,
23
23
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
24
24
  children: count
25
- }), t && /*#__PURE__*/(0, _jsxRuntime.jsx)("small", {
26
- children: t("kayıt listelendi")
25
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("small", {
26
+ children: t ? t("kayıt listelendi") : "Records Listed"
27
27
  })]
28
28
  });
29
29
  };
@@ -117,8 +117,7 @@ function MyTable({
117
117
  }, [data, searchTerm, sortConfig, currentPage, pageSize]);
118
118
  (0, _react.useEffect)(() => {
119
119
  if (emptyText == "") {
120
- // setCurEmptyText(t("Henüz bir kayıt mevcut değil!"));
121
- setCurEmptyText("No records found!");
120
+ setCurEmptyText(t ? t("Henüz bir kayıt mevcut değil!") : "No records found!");
122
121
  }
123
122
  if (t) {}
124
123
  return () => {};
@@ -292,7 +291,7 @@ function MyTable({
292
291
  type: "text"
293
292
  // placeholder={t("Ara")}
294
293
  ,
295
- placeholder: "Search",
294
+ placeholder: t ? t("Listede Ara") : "Search",
296
295
  value: searchTerm,
297
296
  className: _MyTableModule.default.searchInput,
298
297
  onChange: e => setSearchTerm(e.target.value)
@@ -330,9 +329,7 @@ function MyTable({
330
329
  className: _MyTableModule.default.td,
331
330
  children: searchTerm != "" && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
332
331
  dangerouslySetInnerHTML: {
333
- __html: `${
334
- // t("Aradığınız kriterlere uygun kayıt bulunamadı!")
335
- "No records found for the criteria you searched for!"}<br/><b>(${searchTerm})</b>`
332
+ __html: `${t ? t("Aradığınız kriterlere uygun kayıt bulunamadı!") : "No records found for the criteria you searched for!"}<br/><b>(${searchTerm})</b>`
336
333
  }
337
334
  }) || curEmptyText
338
335
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "px-react-ui-components",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "commonjs",