datastake-daf 0.6.334 → 0.6.336

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.
@@ -54498,10 +54498,10 @@ function useAdminTable({
54498
54498
  } = await getData({
54499
54499
  params
54500
54500
  });
54501
- setData(data.data);
54501
+ setData(data.data || data);
54502
54502
  filter.setPagination(prev => ({
54503
54503
  ...prev,
54504
- total: data?.meta?.total || 0
54504
+ total: data?.meta?.total || data?.length || 0
54505
54505
  }));
54506
54506
  if (!initFetchDone) {
54507
54507
  setInitFetchDone(true);
@@ -55672,7 +55672,7 @@ const getColumns$2 = ({
55672
55672
  });
55673
55673
  }
55674
55674
  }, {
55675
- title: t("name"),
55675
+ title: t("Name"),
55676
55676
  dataIndex: "name",
55677
55677
  key: "name",
55678
55678
  ellipsis: true,
@@ -55689,7 +55689,7 @@ const getColumns$2 = ({
55689
55689
  });
55690
55690
  }
55691
55691
  }, {
55692
- title: t("category"),
55692
+ title: t("Category"),
55693
55693
  dataIndex: "category",
55694
55694
  key: "category",
55695
55695
  ellipsis: true,
@@ -55707,7 +55707,7 @@ const getColumns$2 = ({
55707
55707
  });
55708
55708
  }
55709
55709
  }, {
55710
- title: t("country"),
55710
+ title: t("Country"),
55711
55711
  dataIndex: "country",
55712
55712
  key: "country",
55713
55713
  ellipsis: true,
@@ -55759,7 +55759,7 @@ const getColumns$2 = ({
55759
55759
  });
55760
55760
  }
55761
55761
  }, {
55762
- title: t("sources"),
55762
+ title: t("Sources"),
55763
55763
  dataIndex: "sources",
55764
55764
  key: "sources",
55765
55765
  show: true,
@@ -7414,7 +7414,10 @@ const en = {
7414
7414
  FB00006: "Account successfully activated",
7415
7415
  FB00007: "Make sure that this has been properly communicated, as the account admin holds critical user management privileges.",
7416
7416
  admin: {
7417
- locations: "Locations",
7417
+ "events": "Events",
7418
+ "documents": "Documents",
7419
+ "stakeholders": "Stakeholders",
7420
+ "locations": "Locations",
7418
7421
  "review-requests": "Review Requests",
7419
7422
  "create-account": "Create Account",
7420
7423
  "manage-users": "Manage Users",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.334",
3
+ "version": "0.6.336",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -119,7 +119,7 @@ export const getColumns = ({
119
119
  },
120
120
  },
121
121
  {
122
- title: t("name"),
122
+ title: t("Name"),
123
123
  dataIndex: "name",
124
124
  key: "name",
125
125
  ellipsis: true,
@@ -133,7 +133,7 @@ export const getColumns = ({
133
133
  },
134
134
  },
135
135
  {
136
- title: t("category"),
136
+ title: t("Category"),
137
137
  dataIndex: "category",
138
138
  key: "category",
139
139
  ellipsis: true,
@@ -149,7 +149,7 @@ export const getColumns = ({
149
149
  },
150
150
  },
151
151
  {
152
- title: t("country"),
152
+ title: t("Country"),
153
153
  dataIndex: "country",
154
154
  key: "country",
155
155
  ellipsis: true,
@@ -192,7 +192,7 @@ export const getColumns = ({
192
192
  },
193
193
  },
194
194
  {
195
- title: t("sources"),
195
+ title: t("Sources"),
196
196
  dataIndex: "sources",
197
197
  key: "sources",
198
198
  show: true,
@@ -65,8 +65,8 @@ export function useAdminTable({
65
65
  activeFilters: filter.activeFilters,
66
66
  });
67
67
  const { data } = await getData({ params });
68
- setData(data.data);
69
- filter.setPagination((prev) => ({ ...prev, total: data?.meta?.total || 0 }));
68
+ setData(data.data || data);
69
+ filter.setPagination((prev) => ({ ...prev, total: data?.meta?.total || data?.length || 0 }));
70
70
  if (!initFetchDone) {
71
71
  setInitFetchDone(true);
72
72
  }
@@ -1304,7 +1304,10 @@ const en = {
1304
1304
  FB00007:
1305
1305
  "Make sure that this has been properly communicated, as the account admin holds critical user management privileges.",
1306
1306
  admin: {
1307
- locations: "Locations",
1307
+ "events": "Events",
1308
+ "documents": "Documents",
1309
+ "stakeholders": "Stakeholders",
1310
+ "locations": "Locations",
1308
1311
  "review-requests": "Review Requests",
1309
1312
  "create-account": "Create Account",
1310
1313
  "manage-users": "Manage Users",