@bigbinary/neeto-team-members-frontend 3.0.1 → 3.0.3
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/README.md +1 -0
- package/app/javascript/src/translations/en.json +7 -3
- package/dist/index.cjs.js +112 -30
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +115 -33
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -71,6 +71,7 @@ You can learn more about the setup and usage here:
|
|
|
71
71
|
1. [Permissions](./docs/engine/permissions.md)
|
|
72
72
|
2. [Roles](./docs/engine/roles.md)
|
|
73
73
|
3. [Concerns](./docs/engine/concerns.md)
|
|
74
|
+
4. [Member Limit](./docs/engine/member_limits.md)
|
|
74
75
|
|
|
75
76
|
### Frontend package
|
|
76
77
|
|
|
@@ -60,7 +60,9 @@
|
|
|
60
60
|
"role_one": "Role",
|
|
61
61
|
"role_other": "Roles",
|
|
62
62
|
"search_": "Search {{what}}",
|
|
63
|
-
"takeAction": "Take action"
|
|
63
|
+
"takeAction": "Take action",
|
|
64
|
+
"pro": "Pro",
|
|
65
|
+
"subscriptionPlan": "Subscription plan"
|
|
64
66
|
},
|
|
65
67
|
"helpers": {
|
|
66
68
|
"addMembersToNeetoProducts": "Add {{- emails, boldList}} to the following neeto products.",
|
|
@@ -75,7 +77,8 @@
|
|
|
75
77
|
"selectedMembersCount_other": "{{count}} {{taxonomies.member.plural}} selected of <span>{{totalCount}}</span>",
|
|
76
78
|
"singleProductInvitation": "{{- emails, boldList}} will be invited to <strong>{{product, anyCase}}</strong> with a role of <strong>{{role, anyCase}}</strong>.",
|
|
77
79
|
"themeSelector": "Theme selector",
|
|
78
|
-
"whyIsItDisabled": "Why is it disabled?"
|
|
80
|
+
"whyIsItDisabled": "Why is it disabled?",
|
|
81
|
+
"subscriptionWarning": "You will be charged <strong>{{amount}}</strong> for each newly added member on the next renewal."
|
|
79
82
|
},
|
|
80
83
|
"labels": {
|
|
81
84
|
"addNewRole": "Add new role",
|
|
@@ -89,7 +92,8 @@
|
|
|
89
92
|
"manageRole_other": "Manage roles",
|
|
90
93
|
"neeto_": "neeto{{product, anyCase}}",
|
|
91
94
|
"roleNotFound_one": "There are no role to show",
|
|
92
|
-
"roleNotFound_other": "There are no roles to show"
|
|
95
|
+
"roleNotFound_other": "There are no roles to show",
|
|
96
|
+
"upgradeToProPlan": "Upgrade the above added members to the PRO"
|
|
93
97
|
},
|
|
94
98
|
"placeholders": {
|
|
95
99
|
"email": "Please enter the email addresses",
|
package/dist/index.cjs.js
CHANGED
|
@@ -613,6 +613,10 @@ var DATE_FORMAT_OPTIONS = [{
|
|
|
613
613
|
label: i18next.t("neetoTeamMembers.profile.common.ddmmyy"),
|
|
614
614
|
value: "%d/%m/%Y"
|
|
615
615
|
}];
|
|
616
|
+
var SUBSCRIPTION_PLANS = Object.freeze({
|
|
617
|
+
PRO: "pro",
|
|
618
|
+
FREE: "free"
|
|
619
|
+
});
|
|
616
620
|
|
|
617
621
|
var fetchCountries = function fetchCountries() {
|
|
618
622
|
return axios__default["default"].get("".concat(BASE_URL, "/profile/countries"));
|
|
@@ -6005,7 +6009,8 @@ var renderNameColumn = function renderNameColumn(_ref) {
|
|
|
6005
6009
|
tableData = _ref.tableData;
|
|
6006
6010
|
var active = tableData.active,
|
|
6007
6011
|
name = tableData.displayName,
|
|
6008
|
-
imageUrl = tableData.profileImageUrl
|
|
6012
|
+
imageUrl = tableData.profileImageUrl,
|
|
6013
|
+
subscriptionPlan = tableData.subscriptionPlan;
|
|
6009
6014
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6010
6015
|
className: "ntm-members-table__wrapper"
|
|
6011
6016
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -6017,12 +6022,19 @@ var renderNameColumn = function renderNameColumn(_ref) {
|
|
|
6017
6022
|
imageUrl: imageUrl
|
|
6018
6023
|
}
|
|
6019
6024
|
}), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
6025
|
+
"data-cy": "ntm-member-name-".concat(utils$3.hyphenize(name)),
|
|
6020
6026
|
style: "body2"
|
|
6021
6027
|
}, name), displayStatusTag && /*#__PURE__*/React__default["default"].createElement(neetoui.Tag, {
|
|
6022
6028
|
"data-cy": "ntm-member-status-tag",
|
|
6023
6029
|
style: active ? "primary" : "secondary",
|
|
6024
6030
|
type: "outline",
|
|
6025
6031
|
label: active ? i18next__default["default"].t(MEMBER_FILTER.ACTIVE.label) : i18next__default["default"].t(MEMBER_FILTER.DEACTIVATED.label)
|
|
6032
|
+
}), subscriptionPlan === SUBSCRIPTION_PLANS.PRO && /*#__PURE__*/React__default["default"].createElement(neetoui.Tag, {
|
|
6033
|
+
className: "neeto-ui-text-transform-uppercase",
|
|
6034
|
+
"data-cy": "ntm-member-subscription-plan-tag",
|
|
6035
|
+
label: i18next__default["default"].t("neetoTeamMembers.common.pro"),
|
|
6036
|
+
style: "info",
|
|
6037
|
+
type: "outline"
|
|
6026
6038
|
})), renderDropdownButton({
|
|
6027
6039
|
config: config,
|
|
6028
6040
|
handleUpdateRole: handleUpdateRole,
|
|
@@ -6128,18 +6140,35 @@ var getDefaultColumns = function getDefaultColumns(_ref5) {
|
|
|
6128
6140
|
sorter: true,
|
|
6129
6141
|
width: 200,
|
|
6130
6142
|
title: i18next__default["default"].t("neetoTeamMembers.common.role", constants.SINGULAR)
|
|
6143
|
+
}, {
|
|
6144
|
+
dataIndex: "subscriptionPlan",
|
|
6145
|
+
key: "subscription_plan",
|
|
6146
|
+
hidden: true,
|
|
6147
|
+
isHidable: false,
|
|
6148
|
+
title: ""
|
|
6131
6149
|
}];
|
|
6132
6150
|
};
|
|
6133
6151
|
var removeExcludedRole = ramda.curry(function (excludedRoles, role) {
|
|
6134
6152
|
return !(excludedRoles !== null && excludedRoles !== void 0 && excludedRoles.includes(role === null || role === void 0 ? void 0 : role.name));
|
|
6135
6153
|
});
|
|
6136
|
-
var
|
|
6154
|
+
var getSubscriptionLabelAndValue = function getSubscriptionLabelAndValue() {
|
|
6155
|
+
return Object.entries(SUBSCRIPTION_PLANS).map(function (_ref6) {
|
|
6156
|
+
var _ref7 = _slicedToArray(_ref6, 2),
|
|
6157
|
+
key = _ref7[0],
|
|
6158
|
+
value = _ref7[1];
|
|
6159
|
+
return {
|
|
6160
|
+
label: key,
|
|
6161
|
+
value: value
|
|
6162
|
+
};
|
|
6163
|
+
});
|
|
6164
|
+
};
|
|
6165
|
+
var getColumnData = function getColumnData(_ref8) {
|
|
6137
6166
|
var _config$otherColumns;
|
|
6138
|
-
var config =
|
|
6139
|
-
handleUpdateRole =
|
|
6140
|
-
handleUpdateStatus =
|
|
6141
|
-
memberFilter =
|
|
6142
|
-
isSize =
|
|
6167
|
+
var config = _ref8.config,
|
|
6168
|
+
handleUpdateRole = _ref8.handleUpdateRole,
|
|
6169
|
+
handleUpdateStatus = _ref8.handleUpdateStatus,
|
|
6170
|
+
memberFilter = _ref8.memberFilter,
|
|
6171
|
+
isSize = _ref8.isSize;
|
|
6143
6172
|
var displayStatusTag = ramda.identical(memberFilter, MEMBER_FILTER.ALL.value);
|
|
6144
6173
|
var otherColumns = (_config$otherColumns = config === null || config === void 0 ? void 0 : config.otherColumns) !== null && _config$otherColumns !== void 0 ? _config$otherColumns : [];
|
|
6145
6174
|
var defaultColumns = getDefaultColumns({
|
|
@@ -6151,15 +6180,15 @@ var getColumnData = function getColumnData(_ref6) {
|
|
|
6151
6180
|
isSize: isSize
|
|
6152
6181
|
});
|
|
6153
6182
|
var columns = defaultColumns.map(function (column) {
|
|
6154
|
-
var otherColumn = otherColumns.find(function (
|
|
6155
|
-
var dataIndex =
|
|
6183
|
+
var otherColumn = otherColumns.find(function (_ref9) {
|
|
6184
|
+
var dataIndex = _ref9.dataIndex;
|
|
6156
6185
|
return ramda.identical(dataIndex, column.dataIndex);
|
|
6157
6186
|
});
|
|
6158
6187
|
return otherColumn || column;
|
|
6159
6188
|
});
|
|
6160
6189
|
otherColumns.forEach(function (otherColumn) {
|
|
6161
|
-
var column = columns.find(function (
|
|
6162
|
-
var dataIndex =
|
|
6190
|
+
var column = columns.find(function (_ref10) {
|
|
6191
|
+
var dataIndex = _ref10.dataIndex;
|
|
6163
6192
|
return ramda.identical(dataIndex, otherColumn.dataIndex);
|
|
6164
6193
|
});
|
|
6165
6194
|
if (!column) columns.push(otherColumn);
|
|
@@ -6234,20 +6263,28 @@ var defaultNeetoFiltersColumns = function defaultNeetoFiltersColumns() {
|
|
|
6234
6263
|
node: "organization_role.name",
|
|
6235
6264
|
type: "multi_option",
|
|
6236
6265
|
values: []
|
|
6266
|
+
}, {
|
|
6267
|
+
key: "subscription_plan",
|
|
6268
|
+
label: i18next__default["default"].t("neetoTeamMembers.common.subscriptionPlan", constants.SINGULAR),
|
|
6269
|
+
model: "User",
|
|
6270
|
+
node: "subscription_plan",
|
|
6271
|
+
type: "single_option",
|
|
6272
|
+
values: []
|
|
6237
6273
|
}];
|
|
6238
6274
|
};
|
|
6239
|
-
var buildFilterColumns = function buildFilterColumns(
|
|
6240
|
-
var
|
|
6241
|
-
|
|
6242
|
-
emails =
|
|
6243
|
-
|
|
6244
|
-
organizationRoles =
|
|
6245
|
-
|
|
6246
|
-
setSearchTerm =
|
|
6247
|
-
isLoading =
|
|
6275
|
+
var buildFilterColumns = function buildFilterColumns(_ref11) {
|
|
6276
|
+
var _ref11$options = _ref11.options,
|
|
6277
|
+
_ref11$options$emails = _ref11$options.emails,
|
|
6278
|
+
emails = _ref11$options$emails === void 0 ? [] : _ref11$options$emails,
|
|
6279
|
+
_ref11$options$organi = _ref11$options.organizationRoles,
|
|
6280
|
+
organizationRoles = _ref11$options$organi === void 0 ? [] : _ref11$options$organi,
|
|
6281
|
+
_ref11$emailConfig = _ref11.emailConfig,
|
|
6282
|
+
setSearchTerm = _ref11$emailConfig.setSearchTerm,
|
|
6283
|
+
isLoading = _ref11$emailConfig.isLoading;
|
|
6248
6284
|
var columnValues = {
|
|
6249
6285
|
email: emails.map(neetoCist.toLabelAndValue),
|
|
6250
|
-
role: organizationRoles.map(neetoCist.toLabelAndValue)
|
|
6286
|
+
role: organizationRoles.map(neetoCist.toLabelAndValue),
|
|
6287
|
+
subscription_plan: getSubscriptionLabelAndValue()
|
|
6251
6288
|
};
|
|
6252
6289
|
return defaultNeetoFiltersColumns().map(function (column) {
|
|
6253
6290
|
var values = columnValues[column.key];
|
|
@@ -6262,8 +6299,8 @@ var buildFilterColumns = function buildFilterColumns(_ref9) {
|
|
|
6262
6299
|
};
|
|
6263
6300
|
var getValidCategory = function getValidCategory(category) {
|
|
6264
6301
|
var defaultCategory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : MEMBER_FILTER.ACTIVE.value;
|
|
6265
|
-
return Object.values(MEMBER_FILTER).some(function (
|
|
6266
|
-
var value =
|
|
6302
|
+
return Object.values(MEMBER_FILTER).some(function (_ref12) {
|
|
6303
|
+
var value = _ref12.value;
|
|
6267
6304
|
return ramda.identical(value, category);
|
|
6268
6305
|
}) ? category : defaultCategory;
|
|
6269
6306
|
};
|
|
@@ -6272,9 +6309,9 @@ var getFilteredRoles = function getFilteredRoles() {
|
|
|
6272
6309
|
var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
6273
6310
|
return ramda.filter(removeExcludedRole(config === null || config === void 0 ? void 0 : config.excludedRoles), roles);
|
|
6274
6311
|
};
|
|
6275
|
-
var generateNoDataContent = function generateNoDataContent(
|
|
6276
|
-
var filterCategory =
|
|
6277
|
-
buttonProps =
|
|
6312
|
+
var generateNoDataContent = function generateNoDataContent(_ref13) {
|
|
6313
|
+
var filterCategory = _ref13.filterCategory,
|
|
6314
|
+
buttonProps = _ref13.buttonProps;
|
|
6278
6315
|
var disabled = buttonProps.disabled,
|
|
6279
6316
|
onClick = buttonProps.onClick;
|
|
6280
6317
|
var kind = MEMBER_FILTER[filterCategory].value.toLowerCase();
|
|
@@ -6445,6 +6482,7 @@ var useTeams = function useTeams(_ref) {
|
|
|
6445
6482
|
active: ramda.pluck("active", rowData),
|
|
6446
6483
|
displayNames: ramda.pluck("displayName", rowData),
|
|
6447
6484
|
emails: ramda.pluck("email", rowData),
|
|
6485
|
+
subscriptionPlans: ramda.pluck("subscriptionPlan", rowData),
|
|
6448
6486
|
keys: keys
|
|
6449
6487
|
};
|
|
6450
6488
|
setSelectedRows(_objectSpread$5({}, rows));
|
|
@@ -6677,6 +6715,9 @@ var Left = function Left(_ref) {
|
|
|
6677
6715
|
window.location.pathname = "/";
|
|
6678
6716
|
}
|
|
6679
6717
|
};
|
|
6718
|
+
var resetSelectedRows = function resetSelectedRows() {
|
|
6719
|
+
return setSelectedRows(DEFAULT_SELECTED_ROWS);
|
|
6720
|
+
};
|
|
6680
6721
|
var handleActivateMembers = function handleActivateMembers() {
|
|
6681
6722
|
return bulkUpdateMember({
|
|
6682
6723
|
users: {
|
|
@@ -6772,7 +6813,7 @@ var Left = function Left(_ref) {
|
|
|
6772
6813
|
setBulkUpdateRole: setBulkUpdateRole,
|
|
6773
6814
|
disabled: hasDeactivateMembers,
|
|
6774
6815
|
hasUpdatePermission: isUpdatePermissionGranted
|
|
6775
|
-
}), config === null || config === void 0 || (_config$otherBulkActi = config.otherBulkActions) === null || _config$otherBulkActi === void 0 ? void 0 : _config$otherBulkActi.call(config))))), /*#__PURE__*/React__default["default"].createElement(neetoui.Alert, {
|
|
6816
|
+
}), config === null || config === void 0 || (_config$otherBulkActi = config.otherBulkActions) === null || _config$otherBulkActi === void 0 ? void 0 : _config$otherBulkActi.call(config, resetSelectedRows, selectedRows))))), /*#__PURE__*/React__default["default"].createElement(neetoui.Alert, {
|
|
6776
6817
|
isOpen: selectedAlert,
|
|
6777
6818
|
submitButtonLabel: getButtonLabel(selectedAlert === null || selectedAlert === void 0 ? void 0 : selectedAlert.type),
|
|
6778
6819
|
title: selectedAlert === null || selectedAlert === void 0 ? void 0 : selectedAlert.title,
|
|
@@ -6894,6 +6935,7 @@ var AppList = function AppList(_ref) {
|
|
|
6894
6935
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Checkbox, {
|
|
6895
6936
|
checked: isAppListEnabled,
|
|
6896
6937
|
className: "ntm-manage-members__checkbox-align-start",
|
|
6938
|
+
"data-cy": "ntm-manage-members-app-list-checkbox",
|
|
6897
6939
|
label: /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
6898
6940
|
component: "span",
|
|
6899
6941
|
lineHeight: "relaxed",
|
|
@@ -7079,6 +7121,7 @@ var renderInitialValues = function renderInitialValues(_ref) {
|
|
|
7079
7121
|
lastName: "",
|
|
7080
7122
|
emails: [],
|
|
7081
7123
|
role: (_roles$1$name = (_roles$ = roles[1]) === null || _roles$ === void 0 ? void 0 : _roles$.name) !== null && _roles$1$name !== void 0 ? _roles$1$name : "",
|
|
7124
|
+
subscriptionPlan: SUBSCRIPTION_PLANS.FREE,
|
|
7082
7125
|
appRoles: generateAppsRolesInitialValue(globalRoles, (_roles$2 = roles[1]) === null || _roles$2 === void 0 ? void 0 : _roles$2.name)
|
|
7083
7126
|
}, additionalFieldsInitialValues);
|
|
7084
7127
|
};
|
|
@@ -7339,10 +7382,45 @@ var RolesRadioGroup = function RolesRadioGroup(_ref) {
|
|
|
7339
7382
|
}));
|
|
7340
7383
|
};
|
|
7341
7384
|
|
|
7385
|
+
var SubscriptionPlan = function SubscriptionPlan(_ref) {
|
|
7386
|
+
var _subscription$plan, _subscription$plan2;
|
|
7387
|
+
var subscription = _ref.subscription;
|
|
7388
|
+
var _useFormikContext = formik.useFormikContext(),
|
|
7389
|
+
values = _useFormikContext.values,
|
|
7390
|
+
setFieldValue = _useFormikContext.setFieldValue;
|
|
7391
|
+
var isProPlan = (values === null || values === void 0 ? void 0 : values.subscriptionPlan) === SUBSCRIPTION_PLANS.PRO;
|
|
7392
|
+
var handleChange = function handleChange(event) {
|
|
7393
|
+
return setFieldValue("subscriptionPlan", event.target.checked ? SUBSCRIPTION_PLANS.PRO : SUBSCRIPTION_PLANS.FREE);
|
|
7394
|
+
};
|
|
7395
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7396
|
+
className: "flex flex-col space-y-4"
|
|
7397
|
+
}, /*#__PURE__*/React__default["default"].createElement(formik$1.Checkbox, {
|
|
7398
|
+
label: /*#__PURE__*/React__default["default"].createElement(reactI18next.Trans, {
|
|
7399
|
+
i18nKey: "neetoTeamMembers.labels.upgradeToProPlan"
|
|
7400
|
+
}),
|
|
7401
|
+
name: "isSubscriptionProPlan",
|
|
7402
|
+
onChange: handleChange
|
|
7403
|
+
}), isProPlan && /*#__PURE__*/React__default["default"].createElement(neetoui.Callout, {
|
|
7404
|
+
icon: neetoIcons.Warning,
|
|
7405
|
+
style: "warning"
|
|
7406
|
+
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
7407
|
+
style: "body2",
|
|
7408
|
+
weight: "normal"
|
|
7409
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactI18next.Trans, {
|
|
7410
|
+
i18nKey: "neetoTeamMembers.helpers.subscriptionWarning",
|
|
7411
|
+
values: {
|
|
7412
|
+
amount: utils$3.currencyFormat.withSymbol(subscription === null || subscription === void 0 || (_subscription$plan = subscription.plan) === null || _subscription$plan === void 0 ? void 0 : _subscription$plan.amount, subscription === null || subscription === void 0 || (_subscription$plan2 = subscription.plan) === null || _subscription$plan2 === void 0 || (_subscription$plan2 = _subscription$plan2.currency) === null || _subscription$plan2 === void 0 ? void 0 : _subscription$plan2.toUpperCase(), {
|
|
7413
|
+
maximumFractionDigits: 2,
|
|
7414
|
+
minimumFractionDigits: 0
|
|
7415
|
+
})
|
|
7416
|
+
}
|
|
7417
|
+
}))));
|
|
7418
|
+
};
|
|
7419
|
+
|
|
7342
7420
|
function ownKeys$1(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; }
|
|
7343
7421
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7344
7422
|
var ManageMember = function ManageMember(_ref) {
|
|
7345
|
-
var _manageMemberComponen, _config$additionalFie2;
|
|
7423
|
+
var _config$subscription, _manageMemberComponen, _config$additionalFie2;
|
|
7346
7424
|
var config = _ref.config,
|
|
7347
7425
|
onComplete = _ref.onComplete,
|
|
7348
7426
|
_ref$roles = _ref.roles,
|
|
@@ -7377,6 +7455,7 @@ var ManageMember = function ManageMember(_ref) {
|
|
|
7377
7455
|
var haveToFetchRoles = ramda.isEmpty(roles) && isViewPermissionGranted;
|
|
7378
7456
|
var isEditForm = !!selectedMember;
|
|
7379
7457
|
var isLastPage = currentPage === FORM_PAGES.CONFIRMATION || isEditForm;
|
|
7458
|
+
var isSubscriptionVisible = !isEditForm && ((_config$subscription = config.subscription) === null || _config$subscription === void 0 ? void 0 : _config$subscription.isActive);
|
|
7380
7459
|
var _useFetchRoles = useFetchRoles({
|
|
7381
7460
|
select: function select(response) {
|
|
7382
7461
|
var _response$organizatio;
|
|
@@ -7476,6 +7555,9 @@ var ManageMember = function ManageMember(_ref) {
|
|
|
7476
7555
|
emails: emails,
|
|
7477
7556
|
selectedMember: selectedMember,
|
|
7478
7557
|
innerRef: inputReference
|
|
7558
|
+
}), isSubscriptionVisible && /*#__PURE__*/React__default["default"].createElement(SubscriptionPlan, {
|
|
7559
|
+
handleClose: handleClose,
|
|
7560
|
+
subscription: config.subscription
|
|
7479
7561
|
}), /*#__PURE__*/React__default["default"].createElement(RolesRadioGroup, {
|
|
7480
7562
|
config: config,
|
|
7481
7563
|
globalRoles: globalRoles,
|
|
@@ -7596,7 +7678,7 @@ var Menu = function Menu(_ref) {
|
|
|
7596
7678
|
function ownKeys(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; }
|
|
7597
7679
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7598
7680
|
var TeamMembers = function TeamMembers(_ref) {
|
|
7599
|
-
var _config$fetchApiRespo, _config$table, _config$table$onDropd;
|
|
7681
|
+
var _config$fetchApiRespo, _config$table, _config$table$onDropd, _config$table2;
|
|
7600
7682
|
var config = _ref.config;
|
|
7601
7683
|
var _useTranslation = reactI18next.useTranslation(),
|
|
7602
7684
|
t = _useTranslation.t;
|
|
@@ -7688,7 +7770,7 @@ var TeamMembers = function TeamMembers(_ref) {
|
|
|
7688
7770
|
memberFilter: filters.category,
|
|
7689
7771
|
isSize: isSize
|
|
7690
7772
|
});
|
|
7691
|
-
}, [filters.category] // eslint-disable-line react-hooks/exhaustive-deps
|
|
7773
|
+
}, [filters.category, (_config$table2 = config.table) === null || _config$table2 === void 0 ? void 0 : _config$table2.dropdownProps] // eslint-disable-line react-hooks/exhaustive-deps
|
|
7692
7774
|
);
|
|
7693
7775
|
|
|
7694
7776
|
var _useHiddenColumns = Columns$1.useHiddenColumns(TEAM_MEMBERS_HIDDEN_COLUMNS),
|