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