@itilite/iui-user-management 0.4.217 → 0.4.218

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.
@@ -6215,10 +6215,15 @@ var UserAddEdit = function UserAddEdit(props) {
6215
6215
  dispatch(verifyUserInfo(verifyUserId)).then(function (res) {
6216
6216
  setPersonalInfoInput(function (prevState) {
6217
6217
  return _extends({}, prevState, {
6218
- first_name: res.first_name,
6219
- last_name: res.last_name,
6218
+ first_name: res.fname,
6219
+ last_name: res.lname,
6220
6220
  email: res.email,
6221
6221
  contact_number: res.phone,
6222
+ dob: function () {
6223
+ var dt = new Date(res.dob);
6224
+ var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
6225
+ return dt.getDate() + " " + months[dt.getMonth()] + " " + dt.getFullYear();
6226
+ }(),
6222
6227
  gender: function () {
6223
6228
  if (res.gender === 'male') return 'Male';else if (res.gender === 'female') return 'Female';else if (res.gender === 'others') return 'Others';else return '';
6224
6229
  }()
@@ -8571,17 +8576,17 @@ var SingupRequests = function SingupRequests(props) {
8571
8576
  return dt.getDate() + " " + months[dt.getMonth()] + " " + dt.getFullYear();
8572
8577
  };
8573
8578
  var columns = [{
8574
- id: 'first_name',
8579
+ id: 'fname',
8575
8580
  label: 'Name',
8576
8581
  minWidth: 250,
8577
8582
  sortable: true,
8578
8583
  cell: function cell(row) {
8579
8584
  var _row$profile_pic2;
8580
8585
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IUIProfileBox, {
8581
- firstName: row.first_name,
8582
- lastName: row.last_name,
8586
+ firstName: row.fname,
8587
+ lastName: row.lname,
8583
8588
  isLetterAvatar: row.profile_pic && row.profile_pic.presigned_url ? false : true,
8584
- primaryText: row.first_name + ' ' + row.last_name,
8589
+ primaryText: row.fname + ' ' + row.lname,
8585
8590
  secondaryText: row.email,
8586
8591
  letterAvatarTextColor: "black",
8587
8592
  letterAvatarBackgroundColor: "#d3d3d3",
@@ -8590,7 +8595,7 @@ var SingupRequests = function SingupRequests(props) {
8590
8595
  }));
8591
8596
  }
8592
8597
  }, {
8593
- id: 'created_at',
8598
+ id: 'created',
8594
8599
  label: 'Requested on',
8595
8600
  minWidth: 100,
8596
8601
  sortable: true,
@@ -8600,7 +8605,7 @@ var SingupRequests = function SingupRequests(props) {
8600
8605
  width: 100
8601
8606
  }, /*#__PURE__*/React.createElement(IUITypography, {
8602
8607
  className: clsx(styles$5.rowText, styles$5.textTransform)
8603
- }, formatDate(row.created_at)));
8608
+ }, formatDate(row.created)));
8604
8609
  }
8605
8610
  }, {
8606
8611
  id: 'actions',
@@ -8873,7 +8878,7 @@ var UserList = function UserList(_ref2) {
8873
8878
  var _React$useState11 = React.useState('asc'),
8874
8879
  signup_order = _React$useState11[0],
8875
8880
  setSignUpOrder = _React$useState11[1];
8876
- var _React$useState12 = React.useState('first_name'),
8881
+ var _React$useState12 = React.useState('fname'),
8877
8882
  signup_orderBy = _React$useState12[0],
8878
8883
  setSignUpOrderBy = _React$useState12[1];
8879
8884
  var _useState22 = useState(''),