@bigbinary/neeto-team-members-frontend 3.2.0-beta3 → 3.2.0-beta4

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.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { globalProps, taxonomies } from '@bigbinary/neeto-commons-frontend/initializers';
2
2
  import require$$0, { useState, createElement, useEffect, useMemo, useRef, Fragment as Fragment$1, memo, useCallback } from 'react';
3
3
  import { removeBy, nullSafe, noop, isPresent, findById, isNotEmpty, findBy, _findBy, replaceById, keysToSnakeCase, notEquals, toLabelAndValue, filterBy, slugify } from '@bigbinary/neeto-cist';
4
- import { useMutationWithInvalidation as useMutationWithInvalidation$1, withT, useQueryParams, withTitle, useFuncDebounce, useDebounce, useBreakpoints } from '@bigbinary/neeto-commons-frontend/react-utils';
4
+ import { useMutationWithInvalidation, withT, useQueryParams, withTitle, useFuncDebounce, useDebounce, useBreakpoints } from '@bigbinary/neeto-commons-frontend/react-utils';
5
5
  import Container from '@bigbinary/neeto-molecules/Container';
6
6
  import NeetoHeader from '@bigbinary/neeto-molecules/Header';
7
7
  import Button from '@bigbinary/neetoui/Button';
8
8
  import { useTranslation, Trans } from 'react-i18next';
9
- import { useQuery, useQueryClient, useMutation, QueryClient, QueryCache, QueryClientProvider, keepPreviousData } from '@tanstack/react-query';
9
+ import { useQuery, QueryClient, QueryCache, QueryClientProvider, keepPreviousData, useMutation } from '@tanstack/react-query';
10
10
  import { prop, pluck, mergeLeft, includes, keys, isEmpty, replace as replace$1, is, append, equals, concat, groupBy, not, map, identical, modify, __, filter as filter$1, identity, clamp, curry, isNil, toLower, assoc, trim, isNotNil, pick, move, head, reverse } from 'ramda';
11
11
  import axios from 'axios';
12
12
  import i18next, { t as t$1 } from 'i18next';
@@ -41,7 +41,6 @@ import Toastr from '@bigbinary/neetoui/Toastr';
41
41
  import withImmutableActions from '@bigbinary/neeto-commons-frontend/react-utils/withImmutableActions';
42
42
  import { create as create$3 } from 'zustand';
43
43
  import { shallow } from 'zustand/shallow';
44
- import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
45
44
  import Checkbox from '@bigbinary/neetoui/Checkbox';
46
45
  import classnames from 'classnames';
47
46
  import Input$1 from '@bigbinary/neetoui/Input';
@@ -262,19 +261,19 @@ var useFetchGroups = function useFetchGroups(_ref) {
262
261
  var useCreateGroup = function useCreateGroup() {
263
262
  var _config$form$otherKey, _config$form;
264
263
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
265
- return useMutationWithInvalidation$1(function (payload) {
264
+ return useMutationWithInvalidation(function (payload) {
266
265
  return groupsApi.create(payload);
267
266
  }, {
268
- keysToInvalidate: [QUERY_KEYS.GROUPS].concat(_toConsumableArray((_config$form$otherKey = config === null || config === void 0 || (_config$form = config.form) === null || _config$form === void 0 ? void 0 : _config$form.otherKeysToInvalidate) !== null && _config$form$otherKey !== void 0 ? _config$form$otherKey : []))
267
+ keysToInvalidate: [[QUERY_KEYS.GROUPS]].concat(_toConsumableArray((_config$form$otherKey = config === null || config === void 0 || (_config$form = config.form) === null || _config$form === void 0 ? void 0 : _config$form.otherKeysToInvalidate) !== null && _config$form$otherKey !== void 0 ? _config$form$otherKey : []))
269
268
  });
270
269
  };
271
270
  var useDeleteGroup = function useDeleteGroup() {
272
271
  var _config$form$otherKey2, _config$form2;
273
272
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
274
- return useMutationWithInvalidation$1(function (id) {
273
+ return useMutationWithInvalidation(function (id) {
275
274
  return groupsApi.destroy(id);
276
275
  }, {
277
- keysToInvalidate: [QUERY_KEYS.GROUPS].concat(_toConsumableArray((_config$form$otherKey2 = config === null || config === void 0 || (_config$form2 = config.form) === null || _config$form2 === void 0 ? void 0 : _config$form2.otherKeysToInvalidate) !== null && _config$form$otherKey2 !== void 0 ? _config$form$otherKey2 : []))
276
+ keysToInvalidate: [[QUERY_KEYS.GROUPS]].concat(_toConsumableArray((_config$form$otherKey2 = config === null || config === void 0 || (_config$form2 = config.form) === null || _config$form2 === void 0 ? void 0 : _config$form2.otherKeysToInvalidate) !== null && _config$form$otherKey2 !== void 0 ? _config$form$otherKey2 : []))
278
277
  });
279
278
  };
280
279
  var useFetchGroup = function useFetchGroup(id) {
@@ -290,12 +289,12 @@ var useFetchGroup = function useFetchGroup(id) {
290
289
  var useUpdateGroup = function useUpdateGroup() {
291
290
  var _config$form$otherKey3, _config$form3;
292
291
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
293
- return useMutationWithInvalidation$1(function (_ref2) {
292
+ return useMutationWithInvalidation(function (_ref2) {
294
293
  var id = _ref2.id,
295
294
  payload = _ref2.payload;
296
295
  return groupsApi.update(id, payload);
297
296
  }, {
298
- keysToInvalidate: [QUERY_KEYS.GROUPS].concat(_toConsumableArray((_config$form$otherKey3 = config === null || config === void 0 || (_config$form3 = config.form) === null || _config$form3 === void 0 ? void 0 : _config$form3.otherKeysToInvalidate) !== null && _config$form$otherKey3 !== void 0 ? _config$form$otherKey3 : []))
297
+ keysToInvalidate: [[QUERY_KEYS.GROUPS]].concat(_toConsumableArray((_config$form$otherKey3 = config === null || config === void 0 || (_config$form3 = config.form) === null || _config$form3 === void 0 ? void 0 : _config$form3.otherKeysToInvalidate) !== null && _config$form$otherKey3 !== void 0 ? _config$form$otherKey3 : []))
299
298
  });
300
299
  };
301
300
 
@@ -1279,8 +1278,8 @@ var Edit = function Edit(_ref) {
1279
1278
  });
1280
1279
  };
1281
1280
 
1282
- function ownKeys$l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1283
- function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1281
+ function ownKeys$k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1282
+ function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1284
1283
  var List = function List(_ref) {
1285
1284
  var _config$table$deleteA, _config$table, _config$table$deleteA2;
1286
1285
  var config = _ref.config,
@@ -1370,7 +1369,7 @@ var List = function List(_ref) {
1370
1369
  })]
1371
1370
  }) : /*#__PURE__*/jsx("div", {
1372
1371
  className: "flex h-full w-full flex-grow items-center justify-center",
1373
- children: /*#__PURE__*/jsx(NoData, _objectSpread$l({
1372
+ children: /*#__PURE__*/jsx(NoData, _objectSpread$k({
1374
1373
  title: t("neetoTeamMembers.helpers.emptyTable", {
1375
1374
  entity: taxonomies.group.plural
1376
1375
  })
@@ -1867,70 +1866,6 @@ try {
1867
1866
 
1868
1867
  var _regeneratorRuntime = /*@__PURE__*/getDefaultExportFromCjs(regenerator);
1869
1868
 
1870
- function _objectWithoutPropertiesLoose(source, excluded) {
1871
- if (source == null) return {};
1872
- var target = {};
1873
- var sourceKeys = Object.keys(source);
1874
- var key, i;
1875
- for (i = 0; i < sourceKeys.length; i++) {
1876
- key = sourceKeys[i];
1877
- if (excluded.indexOf(key) >= 0) continue;
1878
- target[key] = source[key];
1879
- }
1880
- return target;
1881
- }
1882
-
1883
- function _objectWithoutProperties(source, excluded) {
1884
- if (source == null) return {};
1885
- var target = _objectWithoutPropertiesLoose(source, excluded);
1886
- var key, i;
1887
- if (Object.getOwnPropertySymbols) {
1888
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
1889
- for (i = 0; i < sourceSymbolKeys.length; i++) {
1890
- key = sourceSymbolKeys[i];
1891
- if (excluded.indexOf(key) >= 0) continue;
1892
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
1893
- target[key] = source[key];
1894
- }
1895
- }
1896
- return target;
1897
- }
1898
-
1899
- var _excluded$4 = ["keysToInvalidate"],
1900
- _excluded2$3 = ["onSuccess"];
1901
- function ownKeys$k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1902
- function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1903
- var useMutationWithInvalidation = function useMutationWithInvalidation(mutationFn, _ref) {
1904
- var keysToInvalidate = _ref.keysToInvalidate,
1905
- options = _objectWithoutProperties(_ref, _excluded$4);
1906
- var queryClient = useQueryClient();
1907
- var _onSuccess = options.onSuccess,
1908
- otherOptions = _objectWithoutProperties(options, _excluded2$3);
1909
- return useMutation(_objectSpread$k({
1910
- mutationFn: mutationFn,
1911
- onSuccess: function onSuccess(data, variables, context) {
1912
- keysToInvalidate.forEach(function (key) {
1913
- var result = key;
1914
- if (typeof key === "function") {
1915
- result = key(data, variables, context);
1916
- }
1917
- if (_typeof$1(result) === "object") {
1918
- queryClient.invalidateQueries(result);
1919
- }
1920
- if (typeof result === "string") {
1921
- queryClient.invalidateQueries({
1922
- queryKey: [key]
1923
- });
1924
- }
1925
- queryClient.invalidateQueries({
1926
- queryKey: key
1927
- });
1928
- });
1929
- _onSuccess === null || _onSuccess === void 0 || _onSuccess(data, variables, context);
1930
- }
1931
- }, otherOptions));
1932
- };
1933
-
1934
1869
  var fetchCountries = function fetchCountries() {
1935
1870
  return axios.get("".concat(BASE_URL, "/profile/countries"));
1936
1871
  };
@@ -2422,20 +2357,16 @@ var ChangeProfile = function ChangeProfile(_ref) {
2422
2357
  })]
2423
2358
  })]
2424
2359
  }), /*#__PURE__*/jsx(Pane.Footer, {
2425
- className: "flex items-center space-x-2",
2426
2360
  children: /*#__PURE__*/jsx(ActionBlock, {
2361
+ isSubmitting: isUpdatingProfile || isUploading,
2427
2362
  cancelButtonProps: {
2428
2363
  "data-test-id": "ntm-profile-cancel-button",
2429
2364
  "data-cy": "ntm-profile-cancel-button",
2430
- disabled: false,
2431
- style: "text",
2432
- className: "ml-2",
2433
2365
  onClick: onClose
2434
2366
  },
2435
2367
  submitButtonProps: {
2436
2368
  "data-cy": "ntm-profile-submit-button",
2437
- "data-test-id": "ntm-profile-save-changes-button",
2438
- loading: isUpdatingProfile || isUploading
2369
+ "data-test-id": "ntm-profile-save-changes-button"
2439
2370
  }
2440
2371
  })
2441
2372
  })]
@@ -3890,12 +3821,9 @@ function ownKeys$g(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
3890
3821
  function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3891
3822
  var withReactQuery = function withReactQuery(Component) {
3892
3823
  var QueryWrapper = function QueryWrapper(props) {
3893
- return /*#__PURE__*/jsxs(QueryClientProvider, {
3824
+ return /*#__PURE__*/jsx(QueryClientProvider, {
3894
3825
  client: queryClient,
3895
- children: [/*#__PURE__*/jsx(Component, _objectSpread$g({}, props)), /*#__PURE__*/jsx(ReactQueryDevtools, {
3896
- initialIsOpen: false,
3897
- position: "left"
3898
- })]
3826
+ children: /*#__PURE__*/jsx(Component, _objectSpread$g({}, props))
3899
3827
  });
3900
3828
  };
3901
3829
  return QueryWrapper;
@@ -3921,6 +3849,35 @@ var useFetchPermissions = function useFetchPermissions() {
3921
3849
  }, options));
3922
3850
  };
3923
3851
 
3852
+ function _objectWithoutPropertiesLoose(source, excluded) {
3853
+ if (source == null) return {};
3854
+ var target = {};
3855
+ var sourceKeys = Object.keys(source);
3856
+ var key, i;
3857
+ for (i = 0; i < sourceKeys.length; i++) {
3858
+ key = sourceKeys[i];
3859
+ if (excluded.indexOf(key) >= 0) continue;
3860
+ target[key] = source[key];
3861
+ }
3862
+ return target;
3863
+ }
3864
+
3865
+ function _objectWithoutProperties(source, excluded) {
3866
+ if (source == null) return {};
3867
+ var target = _objectWithoutPropertiesLoose(source, excluded);
3868
+ var key, i;
3869
+ if (Object.getOwnPropertySymbols) {
3870
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
3871
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
3872
+ key = sourceSymbolKeys[i];
3873
+ if (excluded.indexOf(key) >= 0) continue;
3874
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
3875
+ target[key] = source[key];
3876
+ }
3877
+ }
3878
+ return target;
3879
+ }
3880
+
3924
3881
  var fetch$2 = function fetch() {
3925
3882
  return axios.get("".concat(BASE_URL, "/global_roles"));
3926
3883
  };
@@ -3980,7 +3937,7 @@ var useCreateRole = function useCreateRole(_ref) {
3980
3937
  var _onSuccess = _ref.onSuccess,
3981
3938
  options = _objectWithoutProperties(_ref, _excluded$3);
3982
3939
  return useMutationWithInvalidation(organizationRolesApi.create, _objectSpread$e({
3983
- keysToInvalidate: [QUERY_KEYS.TEAMS_DEPENDENCIES, QUERY_KEYS.ROLES],
3940
+ keysToInvalidate: [[QUERY_KEYS.TEAMS_DEPENDENCIES], [QUERY_KEYS.ROLES]],
3984
3941
  onSuccess: function onSuccess() {
3985
3942
  _onSuccess === null || _onSuccess === void 0 || _onSuccess();
3986
3943
  }
@@ -3994,7 +3951,7 @@ var useUpdateRole = function useUpdateRole(_ref2) {
3994
3951
  payload = _ref3.payload;
3995
3952
  return organizationRolesApi.update(id, payload);
3996
3953
  }, _objectSpread$e({
3997
- keysToInvalidate: [QUERY_KEYS.TEAMS, QUERY_KEYS.TEAMS_DEPENDENCIES, QUERY_KEYS.ROLES],
3954
+ keysToInvalidate: [[QUERY_KEYS.TEAMS], [QUERY_KEYS.TEAMS_DEPENDENCIES], [QUERY_KEYS.ROLES]],
3998
3955
  onSuccess: function onSuccess() {
3999
3956
  _onSuccess2 === null || _onSuccess2 === void 0 || _onSuccess2();
4000
3957
  }
@@ -4009,7 +3966,7 @@ var useDestroyRole = function useDestroyRole(_ref4) {
4009
3966
  payload = _ref5.payload;
4010
3967
  return organizationRolesApi.destroy(id, payload);
4011
3968
  }, _objectSpread$e({
4012
- keysToInvalidate: [QUERY_KEYS.TEAMS, QUERY_KEYS.TEAMS_DEPENDENCIES, QUERY_KEYS.ROLES],
3969
+ keysToInvalidate: [[QUERY_KEYS.TEAMS], [QUERY_KEYS.TEAMS_DEPENDENCIES], [QUERY_KEYS.ROLES]],
4013
3970
  onSuccess: function onSuccess() {
4014
3971
  _onSuccess3 === null || _onSuccess3 === void 0 || _onSuccess3();
4015
3972
  }
@@ -4019,7 +3976,7 @@ var useBulkUpdateRoles = function useBulkUpdateRoles(_ref6) {
4019
3976
  var _onSuccess4 = _ref6.onSuccess,
4020
3977
  options = _objectWithoutProperties(_ref6, _excluded4);
4021
3978
  return useMutationWithInvalidation(organizationRolesApi.bulkUpdate, _objectSpread$e({
4022
- keysToInvalidate: [QUERY_KEYS.TEAMS, QUERY_KEYS.TEAMS_DEPENDENCIES, QUERY_KEYS.ROLES],
3979
+ keysToInvalidate: [[QUERY_KEYS.TEAMS], [QUERY_KEYS.TEAMS_DEPENDENCIES], [QUERY_KEYS.ROLES]],
4023
3980
  onSuccess: function onSuccess() {
4024
3981
  _onSuccess4 === null || _onSuccess4 === void 0 || _onSuccess4();
4025
3982
  }
@@ -4490,20 +4447,17 @@ var ManageRoles = function ManageRoles(_ref) {
4490
4447
  })]
4491
4448
  })
4492
4449
  }), /*#__PURE__*/jsx(Pane.Footer, {
4493
- children: /*#__PURE__*/jsxs("div", {
4450
+ children: /*#__PURE__*/jsx(ActionBlock, {
4451
+ isSubmitting: isSubmitting,
4494
4452
  className: "ntm-roles-pane__footer",
4495
- children: [/*#__PURE__*/jsx(Button, {
4496
- "data-cy": "ntm-add-role-submit-button",
4497
- disabled: !dirty || isSubmitting || isDisabled,
4498
- label: t("neetoTeamMembers.buttons.saveChanges"),
4499
- loading: isSubmitting,
4500
- type: "submit"
4501
- }), /*#__PURE__*/jsx(Button, {
4453
+ cancelButtonProps: {
4502
4454
  "data-cy": "ntm-add-role-cancel-button",
4503
- label: t("neetoTeamMembers.buttons.cancel"),
4504
- style: "text",
4505
4455
  onClick: onClose
4506
- })]
4456
+ },
4457
+ submitButtonProps: {
4458
+ "data-cy": "ntm-add-role-submit-button",
4459
+ disabled: isSubmitting || isDisabled || !dirty
4460
+ }
4507
4461
  })
4508
4462
  })]
4509
4463
  });
@@ -7313,7 +7267,7 @@ var useUpdateMember = function useUpdateMember(_ref) {
7313
7267
  payload = _ref2.payload;
7314
7268
  return teamsApi.update(id, payload);
7315
7269
  }, _objectSpread$a({
7316
- keysToInvalidate: [QUERY_KEYS.TEAMS, QUERY_KEYS.TEAMS_DEPENDENCIES],
7270
+ keysToInvalidate: [[QUERY_KEYS.TEAMS], [QUERY_KEYS.TEAMS_DEPENDENCIES]],
7317
7271
  onSuccess: function onSuccess() {
7318
7272
  _onSuccess === null || _onSuccess === void 0 || _onSuccess();
7319
7273
  }
@@ -7323,7 +7277,7 @@ var useBulkUpdateMembers = function useBulkUpdateMembers(_ref3) {
7323
7277
  var _onSuccess2 = _ref3.onSuccess,
7324
7278
  options = _objectWithoutProperties(_ref3, _excluded2$1);
7325
7279
  return useMutationWithInvalidation(teamsApi.bulkUpdate, _objectSpread$a({
7326
- keysToInvalidate: [QUERY_KEYS.TEAMS, QUERY_KEYS.TEAMS_DEPENDENCIES],
7280
+ keysToInvalidate: [[QUERY_KEYS.TEAMS], [QUERY_KEYS.TEAMS_DEPENDENCIES]],
7327
7281
  onSuccess: function onSuccess() {
7328
7282
  _onSuccess2 === null || _onSuccess2 === void 0 || _onSuccess2();
7329
7283
  }
@@ -9164,8 +9118,7 @@ var ManageMember = function ManageMember(_ref) {
9164
9118
  },
9165
9119
  children: function children(_ref5) {
9166
9120
  var _manageMemberComponen2, _manageMemberComponen3;
9167
- var values = _ref5.values,
9168
- dirty = _ref5.dirty;
9121
+ var values = _ref5.values;
9169
9122
  var emails = values.emails,
9170
9123
  role = values.role;
9171
9124
  formikValues.current = values;
@@ -9184,23 +9137,21 @@ var ManageMember = function ManageMember(_ref) {
9184
9137
  completedCount: progress === null || progress === void 0 ? void 0 : progress.completedCount
9185
9138
  })
9186
9139
  }), renderFormPage(currentPage, emails, role)]
9187
- })), /*#__PURE__*/jsxs(Component.Footer, _objectSpread$1(_objectSpread$1({}, manageMemberComponentConfig.footerProps), {}, {
9140
+ })), /*#__PURE__*/jsx(Component.Footer, _objectSpread$1(_objectSpread$1({}, manageMemberComponentConfig.footerProps), {}, {
9188
9141
  className: classnames(["ntm-members-form__footer", (_manageMemberComponen3 = manageMemberComponentConfig.footerProps) === null || _manageMemberComponen3 === void 0 ? void 0 : _manageMemberComponen3.className]),
9189
- children: [/*#__PURE__*/jsx(Button, {
9190
- loading: isSubmitting || isCreationStatusPollingEnabled,
9191
- style: "primary",
9192
- type: "submit",
9193
- "data-cy": isLastPage ? "ntm-manage-member-submit-button" : "ntm-manage-member-continue-button",
9194
- disabled: !dirty || isSubmitting || isCreationStatusPollingEnabled,
9195
- label: isLastPage ? t("neetoTeamMembers.buttons.saveChanges") : t("neetoTeamMembers.buttons.continue")
9196
- }), /*#__PURE__*/jsx(Button, {
9197
- "data-cy": "ntm-manage-member-cancel-button",
9198
- label: t("neetoTeamMembers.buttons.cancel"),
9199
- style: "text",
9200
- onClick: function onClick() {
9201
- return handleClose(false);
9142
+ children: /*#__PURE__*/jsx(ActionBlock, {
9143
+ isSubmitting: isSubmitting || isCreationStatusPollingEnabled,
9144
+ cancelButtonProps: {
9145
+ "data-cy": "ntm-manage-member-cancel-button",
9146
+ onClick: function onClick() {
9147
+ return handleClose(false);
9148
+ }
9149
+ },
9150
+ submitButtonProps: {
9151
+ "data-cy": isLastPage ? "ntm-manage-member-submit-button" : "ntm-manage-member-continue-button",
9152
+ label: isLastPage ? t("neetoTeamMembers.buttons.saveChanges") : t("neetoTeamMembers.buttons.continue")
9202
9153
  }
9203
- })]
9154
+ })
9204
9155
  }))]
9205
9156
  });
9206
9157
  }