@itilite/iui-user-management 0.4.216 → 0.4.217
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.js +9 -14
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -14
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -6215,15 +6215,10 @@ 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.
|
|
6219
|
-
last_name: res.
|
|
6218
|
+
first_name: res.first_name,
|
|
6219
|
+
last_name: res.last_name,
|
|
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
|
-
}(),
|
|
6227
6222
|
gender: function () {
|
|
6228
6223
|
if (res.gender === 'male') return 'Male';else if (res.gender === 'female') return 'Female';else if (res.gender === 'others') return 'Others';else return '';
|
|
6229
6224
|
}()
|
|
@@ -8576,17 +8571,17 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8576
8571
|
return dt.getDate() + " " + months[dt.getMonth()] + " " + dt.getFullYear();
|
|
8577
8572
|
};
|
|
8578
8573
|
var columns = [{
|
|
8579
|
-
id: '
|
|
8574
|
+
id: 'first_name',
|
|
8580
8575
|
label: 'Name',
|
|
8581
8576
|
minWidth: 250,
|
|
8582
8577
|
sortable: true,
|
|
8583
8578
|
cell: function cell(row) {
|
|
8584
8579
|
var _row$profile_pic2;
|
|
8585
8580
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IUIProfileBox, {
|
|
8586
|
-
firstName: row.
|
|
8587
|
-
lastName: row.
|
|
8581
|
+
firstName: row.first_name,
|
|
8582
|
+
lastName: row.last_name,
|
|
8588
8583
|
isLetterAvatar: row.profile_pic && row.profile_pic.presigned_url ? false : true,
|
|
8589
|
-
primaryText: row.
|
|
8584
|
+
primaryText: row.first_name + ' ' + row.last_name,
|
|
8590
8585
|
secondaryText: row.email,
|
|
8591
8586
|
letterAvatarTextColor: "black",
|
|
8592
8587
|
letterAvatarBackgroundColor: "#d3d3d3",
|
|
@@ -8595,7 +8590,7 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8595
8590
|
}));
|
|
8596
8591
|
}
|
|
8597
8592
|
}, {
|
|
8598
|
-
id: '
|
|
8593
|
+
id: 'created_at',
|
|
8599
8594
|
label: 'Requested on',
|
|
8600
8595
|
minWidth: 100,
|
|
8601
8596
|
sortable: true,
|
|
@@ -8605,7 +8600,7 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8605
8600
|
width: 100
|
|
8606
8601
|
}, /*#__PURE__*/React.createElement(IUITypography, {
|
|
8607
8602
|
className: clsx(styles$5.rowText, styles$5.textTransform)
|
|
8608
|
-
}, formatDate(row.
|
|
8603
|
+
}, formatDate(row.created_at)));
|
|
8609
8604
|
}
|
|
8610
8605
|
}, {
|
|
8611
8606
|
id: 'actions',
|
|
@@ -8878,7 +8873,7 @@ var UserList = function UserList(_ref2) {
|
|
|
8878
8873
|
var _React$useState11 = React.useState('asc'),
|
|
8879
8874
|
signup_order = _React$useState11[0],
|
|
8880
8875
|
setSignUpOrder = _React$useState11[1];
|
|
8881
|
-
var _React$useState12 = React.useState('
|
|
8876
|
+
var _React$useState12 = React.useState('first_name'),
|
|
8882
8877
|
signup_orderBy = _React$useState12[0],
|
|
8883
8878
|
setSignUpOrderBy = _React$useState12[1];
|
|
8884
8879
|
var _useState22 = useState(''),
|