@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.cjs.js CHANGED
@@ -44,7 +44,6 @@ var Toastr = require('@bigbinary/neetoui/Toastr');
44
44
  var withImmutableActions = require('@bigbinary/neeto-commons-frontend/react-utils/withImmutableActions');
45
45
  var zustand = require('zustand');
46
46
  var shallow = require('zustand/shallow');
47
- var reactQueryDevtools = require('@tanstack/react-query-devtools');
48
47
  var Checkbox = require('@bigbinary/neetoui/Checkbox');
49
48
  var classnames = require('classnames');
50
49
  var Input$1 = require('@bigbinary/neetoui/Input');
@@ -331,7 +330,7 @@ var useCreateGroup = function useCreateGroup() {
331
330
  return reactUtils.useMutationWithInvalidation(function (payload) {
332
331
  return groupsApi.create(payload);
333
332
  }, {
334
- 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 : []))
333
+ 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 : []))
335
334
  });
336
335
  };
337
336
  var useDeleteGroup = function useDeleteGroup() {
@@ -340,7 +339,7 @@ var useDeleteGroup = function useDeleteGroup() {
340
339
  return reactUtils.useMutationWithInvalidation(function (id) {
341
340
  return groupsApi.destroy(id);
342
341
  }, {
343
- 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 : []))
342
+ 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 : []))
344
343
  });
345
344
  };
346
345
  var useFetchGroup = function useFetchGroup(id) {
@@ -361,7 +360,7 @@ var useUpdateGroup = function useUpdateGroup() {
361
360
  payload = _ref2.payload;
362
361
  return groupsApi.update(id, payload);
363
362
  }, {
364
- 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 : []))
363
+ 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 : []))
365
364
  });
366
365
  };
367
366
 
@@ -1345,8 +1344,8 @@ var Edit = function Edit(_ref) {
1345
1344
  });
1346
1345
  };
1347
1346
 
1348
- 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; }
1349
- 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; }
1347
+ 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; }
1348
+ 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; }
1350
1349
  var List = function List(_ref) {
1351
1350
  var _config$table$deleteA, _config$table, _config$table$deleteA2;
1352
1351
  var config = _ref.config,
@@ -1436,7 +1435,7 @@ var List = function List(_ref) {
1436
1435
  })]
1437
1436
  }) : /*#__PURE__*/jsxRuntime.jsx("div", {
1438
1437
  className: "flex h-full w-full flex-grow items-center justify-center",
1439
- children: /*#__PURE__*/jsxRuntime.jsx(NoData__default["default"], _objectSpread$l({
1438
+ children: /*#__PURE__*/jsxRuntime.jsx(NoData__default["default"], _objectSpread$k({
1440
1439
  title: t("neetoTeamMembers.helpers.emptyTable", {
1441
1440
  entity: initializers.taxonomies.group.plural
1442
1441
  })
@@ -1933,70 +1932,6 @@ try {
1933
1932
 
1934
1933
  var _regeneratorRuntime = /*@__PURE__*/getDefaultExportFromCjs(regenerator);
1935
1934
 
1936
- function _objectWithoutPropertiesLoose(source, excluded) {
1937
- if (source == null) return {};
1938
- var target = {};
1939
- var sourceKeys = Object.keys(source);
1940
- var key, i;
1941
- for (i = 0; i < sourceKeys.length; i++) {
1942
- key = sourceKeys[i];
1943
- if (excluded.indexOf(key) >= 0) continue;
1944
- target[key] = source[key];
1945
- }
1946
- return target;
1947
- }
1948
-
1949
- function _objectWithoutProperties(source, excluded) {
1950
- if (source == null) return {};
1951
- var target = _objectWithoutPropertiesLoose(source, excluded);
1952
- var key, i;
1953
- if (Object.getOwnPropertySymbols) {
1954
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
1955
- for (i = 0; i < sourceSymbolKeys.length; i++) {
1956
- key = sourceSymbolKeys[i];
1957
- if (excluded.indexOf(key) >= 0) continue;
1958
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
1959
- target[key] = source[key];
1960
- }
1961
- }
1962
- return target;
1963
- }
1964
-
1965
- var _excluded$4 = ["keysToInvalidate"],
1966
- _excluded2$3 = ["onSuccess"];
1967
- 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; }
1968
- 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; }
1969
- var useMutationWithInvalidation = function useMutationWithInvalidation(mutationFn, _ref) {
1970
- var keysToInvalidate = _ref.keysToInvalidate,
1971
- options = _objectWithoutProperties(_ref, _excluded$4);
1972
- var queryClient = reactQuery.useQueryClient();
1973
- var _onSuccess = options.onSuccess,
1974
- otherOptions = _objectWithoutProperties(options, _excluded2$3);
1975
- return reactQuery.useMutation(_objectSpread$k({
1976
- mutationFn: mutationFn,
1977
- onSuccess: function onSuccess(data, variables, context) {
1978
- keysToInvalidate.forEach(function (key) {
1979
- var result = key;
1980
- if (typeof key === "function") {
1981
- result = key(data, variables, context);
1982
- }
1983
- if (_typeof$1(result) === "object") {
1984
- queryClient.invalidateQueries(result);
1985
- }
1986
- if (typeof result === "string") {
1987
- queryClient.invalidateQueries({
1988
- queryKey: [key]
1989
- });
1990
- }
1991
- queryClient.invalidateQueries({
1992
- queryKey: key
1993
- });
1994
- });
1995
- _onSuccess === null || _onSuccess === void 0 || _onSuccess(data, variables, context);
1996
- }
1997
- }, otherOptions));
1998
- };
1999
-
2000
1935
  var fetchCountries = function fetchCountries() {
2001
1936
  return axios__default["default"].get("".concat(BASE_URL, "/profile/countries"));
2002
1937
  };
@@ -2024,7 +1959,7 @@ var useFetchProfile = function useFetchProfile(options) {
2024
1959
  }, options));
2025
1960
  };
2026
1961
  var useUpdateProfileMutation = function useUpdateProfileMutation(options) {
2027
- return useMutationWithInvalidation(profileApi.updateUser, _objectSpread$j(_objectSpread$j({
1962
+ return reactUtils.useMutationWithInvalidation(profileApi.updateUser, _objectSpread$j(_objectSpread$j({
2028
1963
  keysToInvalidate: [[QUERY_KEYS.USER_PROFILE]]
2029
1964
  }, options), {}, {
2030
1965
  onSuccess: function onSuccess() {
@@ -2488,20 +2423,16 @@ var ChangeProfile = function ChangeProfile(_ref) {
2488
2423
  })]
2489
2424
  })]
2490
2425
  }), /*#__PURE__*/jsxRuntime.jsx(Pane__default["default"].Footer, {
2491
- className: "flex items-center space-x-2",
2492
2426
  children: /*#__PURE__*/jsxRuntime.jsx(ActionBlock__default["default"], {
2427
+ isSubmitting: isUpdatingProfile || isUploading,
2493
2428
  cancelButtonProps: {
2494
2429
  "data-test-id": "ntm-profile-cancel-button",
2495
2430
  "data-cy": "ntm-profile-cancel-button",
2496
- disabled: false,
2497
- style: "text",
2498
- className: "ml-2",
2499
2431
  onClick: onClose
2500
2432
  },
2501
2433
  submitButtonProps: {
2502
2434
  "data-cy": "ntm-profile-submit-button",
2503
- "data-test-id": "ntm-profile-save-changes-button",
2504
- loading: isUpdatingProfile || isUploading
2435
+ "data-test-id": "ntm-profile-save-changes-button"
2505
2436
  }
2506
2437
  })
2507
2438
  })]
@@ -3956,12 +3887,9 @@ function ownKeys$g(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
3956
3887
  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; }
3957
3888
  var withReactQuery = function withReactQuery(Component) {
3958
3889
  var QueryWrapper = function QueryWrapper(props) {
3959
- return /*#__PURE__*/jsxRuntime.jsxs(reactQuery.QueryClientProvider, {
3890
+ return /*#__PURE__*/jsxRuntime.jsx(reactQuery.QueryClientProvider, {
3960
3891
  client: queryClient,
3961
- children: [/*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$g({}, props)), /*#__PURE__*/jsxRuntime.jsx(reactQueryDevtools.ReactQueryDevtools, {
3962
- initialIsOpen: false,
3963
- position: "left"
3964
- })]
3892
+ children: /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$g({}, props))
3965
3893
  });
3966
3894
  };
3967
3895
  return QueryWrapper;
@@ -3987,6 +3915,35 @@ var useFetchPermissions = function useFetchPermissions() {
3987
3915
  }, options));
3988
3916
  };
3989
3917
 
3918
+ function _objectWithoutPropertiesLoose(source, excluded) {
3919
+ if (source == null) return {};
3920
+ var target = {};
3921
+ var sourceKeys = Object.keys(source);
3922
+ var key, i;
3923
+ for (i = 0; i < sourceKeys.length; i++) {
3924
+ key = sourceKeys[i];
3925
+ if (excluded.indexOf(key) >= 0) continue;
3926
+ target[key] = source[key];
3927
+ }
3928
+ return target;
3929
+ }
3930
+
3931
+ function _objectWithoutProperties(source, excluded) {
3932
+ if (source == null) return {};
3933
+ var target = _objectWithoutPropertiesLoose(source, excluded);
3934
+ var key, i;
3935
+ if (Object.getOwnPropertySymbols) {
3936
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
3937
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
3938
+ key = sourceSymbolKeys[i];
3939
+ if (excluded.indexOf(key) >= 0) continue;
3940
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
3941
+ target[key] = source[key];
3942
+ }
3943
+ }
3944
+ return target;
3945
+ }
3946
+
3990
3947
  var fetch$2 = function fetch() {
3991
3948
  return axios__default["default"].get("".concat(BASE_URL, "/global_roles"));
3992
3949
  };
@@ -4045,8 +4002,8 @@ var useFetchGlobalRoles = function useFetchGlobalRoles() {
4045
4002
  var useCreateRole = function useCreateRole(_ref) {
4046
4003
  var _onSuccess = _ref.onSuccess,
4047
4004
  options = _objectWithoutProperties(_ref, _excluded$3);
4048
- return useMutationWithInvalidation(organizationRolesApi.create, _objectSpread$e({
4049
- keysToInvalidate: [QUERY_KEYS.TEAMS_DEPENDENCIES, QUERY_KEYS.ROLES],
4005
+ return reactUtils.useMutationWithInvalidation(organizationRolesApi.create, _objectSpread$e({
4006
+ keysToInvalidate: [[QUERY_KEYS.TEAMS_DEPENDENCIES], [QUERY_KEYS.ROLES]],
4050
4007
  onSuccess: function onSuccess() {
4051
4008
  _onSuccess === null || _onSuccess === void 0 || _onSuccess();
4052
4009
  }
@@ -4055,12 +4012,12 @@ var useCreateRole = function useCreateRole(_ref) {
4055
4012
  var useUpdateRole = function useUpdateRole(_ref2) {
4056
4013
  var _onSuccess2 = _ref2.onSuccess,
4057
4014
  options = _objectWithoutProperties(_ref2, _excluded2$2);
4058
- return useMutationWithInvalidation(function (_ref3) {
4015
+ return reactUtils.useMutationWithInvalidation(function (_ref3) {
4059
4016
  var id = _ref3.id,
4060
4017
  payload = _ref3.payload;
4061
4018
  return organizationRolesApi.update(id, payload);
4062
4019
  }, _objectSpread$e({
4063
- keysToInvalidate: [QUERY_KEYS.TEAMS, QUERY_KEYS.TEAMS_DEPENDENCIES, QUERY_KEYS.ROLES],
4020
+ keysToInvalidate: [[QUERY_KEYS.TEAMS], [QUERY_KEYS.TEAMS_DEPENDENCIES], [QUERY_KEYS.ROLES]],
4064
4021
  onSuccess: function onSuccess() {
4065
4022
  _onSuccess2 === null || _onSuccess2 === void 0 || _onSuccess2();
4066
4023
  }
@@ -4070,12 +4027,12 @@ var useDestroyRole = function useDestroyRole(_ref4) {
4070
4027
  var _ref4$onSuccess = _ref4.onSuccess,
4071
4028
  _onSuccess3 = _ref4$onSuccess === void 0 ? neetoCist.noop : _ref4$onSuccess,
4072
4029
  options = _objectWithoutProperties(_ref4, _excluded3);
4073
- return useMutationWithInvalidation(function (_ref5) {
4030
+ return reactUtils.useMutationWithInvalidation(function (_ref5) {
4074
4031
  var id = _ref5.id,
4075
4032
  payload = _ref5.payload;
4076
4033
  return organizationRolesApi.destroy(id, payload);
4077
4034
  }, _objectSpread$e({
4078
- keysToInvalidate: [QUERY_KEYS.TEAMS, QUERY_KEYS.TEAMS_DEPENDENCIES, QUERY_KEYS.ROLES],
4035
+ keysToInvalidate: [[QUERY_KEYS.TEAMS], [QUERY_KEYS.TEAMS_DEPENDENCIES], [QUERY_KEYS.ROLES]],
4079
4036
  onSuccess: function onSuccess() {
4080
4037
  _onSuccess3 === null || _onSuccess3 === void 0 || _onSuccess3();
4081
4038
  }
@@ -4084,8 +4041,8 @@ var useDestroyRole = function useDestroyRole(_ref4) {
4084
4041
  var useBulkUpdateRoles = function useBulkUpdateRoles(_ref6) {
4085
4042
  var _onSuccess4 = _ref6.onSuccess,
4086
4043
  options = _objectWithoutProperties(_ref6, _excluded4);
4087
- return useMutationWithInvalidation(organizationRolesApi.bulkUpdate, _objectSpread$e({
4088
- keysToInvalidate: [QUERY_KEYS.TEAMS, QUERY_KEYS.TEAMS_DEPENDENCIES, QUERY_KEYS.ROLES],
4044
+ return reactUtils.useMutationWithInvalidation(organizationRolesApi.bulkUpdate, _objectSpread$e({
4045
+ keysToInvalidate: [[QUERY_KEYS.TEAMS], [QUERY_KEYS.TEAMS_DEPENDENCIES], [QUERY_KEYS.ROLES]],
4089
4046
  onSuccess: function onSuccess() {
4090
4047
  _onSuccess4 === null || _onSuccess4 === void 0 || _onSuccess4();
4091
4048
  }
@@ -4556,20 +4513,17 @@ var ManageRoles = function ManageRoles(_ref) {
4556
4513
  })]
4557
4514
  })
4558
4515
  }), /*#__PURE__*/jsxRuntime.jsx(Pane__default["default"].Footer, {
4559
- children: /*#__PURE__*/jsxRuntime.jsxs("div", {
4516
+ children: /*#__PURE__*/jsxRuntime.jsx(ActionBlock__default["default"], {
4517
+ isSubmitting: isSubmitting,
4560
4518
  className: "ntm-roles-pane__footer",
4561
- children: [/*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
4562
- "data-cy": "ntm-add-role-submit-button",
4563
- disabled: !dirty || isSubmitting || isDisabled,
4564
- label: t("neetoTeamMembers.buttons.saveChanges"),
4565
- loading: isSubmitting,
4566
- type: "submit"
4567
- }), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
4519
+ cancelButtonProps: {
4568
4520
  "data-cy": "ntm-add-role-cancel-button",
4569
- label: t("neetoTeamMembers.buttons.cancel"),
4570
- style: "text",
4571
4521
  onClick: onClose
4572
- })]
4522
+ },
4523
+ submitButtonProps: {
4524
+ "data-cy": "ntm-add-role-submit-button",
4525
+ disabled: isSubmitting || isDisabled || !dirty
4526
+ }
4573
4527
  })
4574
4528
  })]
4575
4529
  });
@@ -7374,12 +7328,12 @@ var useCreateMember = function useCreateMember() {
7374
7328
  var useUpdateMember = function useUpdateMember(_ref) {
7375
7329
  var _onSuccess = _ref.onSuccess,
7376
7330
  options = _objectWithoutProperties(_ref, _excluded$2);
7377
- return useMutationWithInvalidation(function (_ref2) {
7331
+ return reactUtils.useMutationWithInvalidation(function (_ref2) {
7378
7332
  var id = _ref2.id,
7379
7333
  payload = _ref2.payload;
7380
7334
  return teamsApi.update(id, payload);
7381
7335
  }, _objectSpread$a({
7382
- keysToInvalidate: [QUERY_KEYS.TEAMS, QUERY_KEYS.TEAMS_DEPENDENCIES],
7336
+ keysToInvalidate: [[QUERY_KEYS.TEAMS], [QUERY_KEYS.TEAMS_DEPENDENCIES]],
7383
7337
  onSuccess: function onSuccess() {
7384
7338
  _onSuccess === null || _onSuccess === void 0 || _onSuccess();
7385
7339
  }
@@ -7388,8 +7342,8 @@ var useUpdateMember = function useUpdateMember(_ref) {
7388
7342
  var useBulkUpdateMembers = function useBulkUpdateMembers(_ref3) {
7389
7343
  var _onSuccess2 = _ref3.onSuccess,
7390
7344
  options = _objectWithoutProperties(_ref3, _excluded2$1);
7391
- return useMutationWithInvalidation(teamsApi.bulkUpdate, _objectSpread$a({
7392
- keysToInvalidate: [QUERY_KEYS.TEAMS, QUERY_KEYS.TEAMS_DEPENDENCIES],
7345
+ return reactUtils.useMutationWithInvalidation(teamsApi.bulkUpdate, _objectSpread$a({
7346
+ keysToInvalidate: [[QUERY_KEYS.TEAMS], [QUERY_KEYS.TEAMS_DEPENDENCIES]],
7393
7347
  onSuccess: function onSuccess() {
7394
7348
  _onSuccess2 === null || _onSuccess2 === void 0 || _onSuccess2();
7395
7349
  }
@@ -9230,8 +9184,7 @@ var ManageMember = function ManageMember(_ref) {
9230
9184
  },
9231
9185
  children: function children(_ref5) {
9232
9186
  var _manageMemberComponen2, _manageMemberComponen3;
9233
- var values = _ref5.values,
9234
- dirty = _ref5.dirty;
9187
+ var values = _ref5.values;
9235
9188
  var emails = values.emails,
9236
9189
  role = values.role;
9237
9190
  formikValues.current = values;
@@ -9250,23 +9203,21 @@ var ManageMember = function ManageMember(_ref) {
9250
9203
  completedCount: progress === null || progress === void 0 ? void 0 : progress.completedCount
9251
9204
  })
9252
9205
  }), renderFormPage(currentPage, emails, role)]
9253
- })), /*#__PURE__*/jsxRuntime.jsxs(Component.Footer, _objectSpread$1(_objectSpread$1({}, manageMemberComponentConfig.footerProps), {}, {
9206
+ })), /*#__PURE__*/jsxRuntime.jsx(Component.Footer, _objectSpread$1(_objectSpread$1({}, manageMemberComponentConfig.footerProps), {}, {
9254
9207
  className: classnames__default["default"](["ntm-members-form__footer", (_manageMemberComponen3 = manageMemberComponentConfig.footerProps) === null || _manageMemberComponen3 === void 0 ? void 0 : _manageMemberComponen3.className]),
9255
- children: [/*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
9256
- loading: isSubmitting || isCreationStatusPollingEnabled,
9257
- style: "primary",
9258
- type: "submit",
9259
- "data-cy": isLastPage ? "ntm-manage-member-submit-button" : "ntm-manage-member-continue-button",
9260
- disabled: !dirty || isSubmitting || isCreationStatusPollingEnabled,
9261
- label: isLastPage ? t("neetoTeamMembers.buttons.saveChanges") : t("neetoTeamMembers.buttons.continue")
9262
- }), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
9263
- "data-cy": "ntm-manage-member-cancel-button",
9264
- label: t("neetoTeamMembers.buttons.cancel"),
9265
- style: "text",
9266
- onClick: function onClick() {
9267
- return handleClose(false);
9208
+ children: /*#__PURE__*/jsxRuntime.jsx(ActionBlock__default["default"], {
9209
+ isSubmitting: isSubmitting || isCreationStatusPollingEnabled,
9210
+ cancelButtonProps: {
9211
+ "data-cy": "ntm-manage-member-cancel-button",
9212
+ onClick: function onClick() {
9213
+ return handleClose(false);
9214
+ }
9215
+ },
9216
+ submitButtonProps: {
9217
+ "data-cy": isLastPage ? "ntm-manage-member-submit-button" : "ntm-manage-member-continue-button",
9218
+ label: isLastPage ? t("neetoTeamMembers.buttons.saveChanges") : t("neetoTeamMembers.buttons.continue")
9268
9219
  }
9269
- })]
9220
+ })
9270
9221
  }))]
9271
9222
  });
9272
9223
  }