@itilite/iui-user-management 0.4.906 → 0.4.907

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.
@@ -2957,7 +2957,7 @@ var personalInfo = [{
2957
2957
  id: 4,
2958
2958
  label: 'Phone number',
2959
2959
  name: 'contact_number',
2960
- required: true,
2960
+ required: false,
2961
2961
  type: 'phone',
2962
2962
  fullWidth: false,
2963
2963
  visibility: true,
@@ -6254,15 +6254,10 @@ var UserAddEdit = function UserAddEdit(props) {
6254
6254
  dispatch(verifyUserInfo(verifyUserId)).then(function (res) {
6255
6255
  setPersonalInfoInput(function (prevState) {
6256
6256
  return _extends({}, prevState, {
6257
- first_name: res.fname,
6258
- last_name: res.lname,
6257
+ first_name: res.first_name,
6258
+ last_name: res.last_name,
6259
6259
  email: res.email,
6260
- contact_number: res.phone,
6261
- dob: function () {
6262
- var dt = new Date(res.dob);
6263
- var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
6264
- return dt.getDate() + " " + months[dt.getMonth()] + " " + dt.getFullYear();
6265
- }(),
6260
+ contact_number: res === null || res === void 0 ? void 0 : res.contact_number,
6266
6261
  gender: function () {
6267
6262
  if (res.gender === 'male') return 'Male';else if (res.gender === 'female') return 'Female';else if (res.gender === 'others') return 'Others';else return '';
6268
6263
  }()
@@ -8616,17 +8611,17 @@ var SingupRequests = function SingupRequests(props) {
8616
8611
  return dt.getDate() + " " + months[dt.getMonth()] + " " + dt.getFullYear();
8617
8612
  };
8618
8613
  var columns = [{
8619
- id: 'fname',
8614
+ id: 'first_name',
8620
8615
  label: 'Name',
8621
8616
  minWidth: 250,
8622
8617
  sortable: true,
8623
8618
  cell: function cell(row) {
8624
8619
  var _row$profile_pic2;
8625
8620
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IUIProfileBox, {
8626
- firstName: row.fname,
8627
- lastName: row.lname,
8621
+ firstName: row.first_name,
8622
+ lastName: row.last_name,
8628
8623
  isLetterAvatar: row.profile_pic && row.profile_pic.presigned_url ? false : true,
8629
- primaryText: row.fname + ' ' + row.lname,
8624
+ primaryText: row.first_name + ' ' + row.last_name,
8630
8625
  secondaryText: row.email,
8631
8626
  letterAvatarTextColor: "black",
8632
8627
  letterAvatarBackgroundColor: "#d3d3d3",
@@ -8635,7 +8630,7 @@ var SingupRequests = function SingupRequests(props) {
8635
8630
  }));
8636
8631
  }
8637
8632
  }, {
8638
- id: 'created',
8633
+ id: 'created_at',
8639
8634
  label: 'Requested on',
8640
8635
  minWidth: 100,
8641
8636
  sortable: true,
@@ -8645,7 +8640,7 @@ var SingupRequests = function SingupRequests(props) {
8645
8640
  width: 100
8646
8641
  }, /*#__PURE__*/React.createElement(IUITypography, {
8647
8642
  className: clsx(styles$5.rowText, styles$5.textTransform)
8648
- }, formatDate(row.created)));
8643
+ }, formatDate(row.created_at)));
8649
8644
  }
8650
8645
  }, {
8651
8646
  id: 'actions',
@@ -8918,7 +8913,7 @@ var UserList = function UserList(_ref2) {
8918
8913
  var _React$useState11 = React.useState('asc'),
8919
8914
  signup_order = _React$useState11[0],
8920
8915
  setSignUpOrder = _React$useState11[1];
8921
- var _React$useState12 = React.useState('fname'),
8916
+ var _React$useState12 = React.useState('first_name'),
8922
8917
  signup_orderBy = _React$useState12[0],
8923
8918
  setSignUpOrderBy = _React$useState12[1];
8924
8919
  var _useState22 = useState(''),