@itilite/iui-user-management 1.4.961 → 1.4.963
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 +2 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -2821,7 +2821,6 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2821
2821
|
var timeDiff = cardExpDate.getTime() - currentDate.getTime();
|
|
2822
2822
|
var daysToExpire = Math.ceil(timeDiff / (1000 * 3600 * 24));
|
|
2823
2823
|
var expiresSoon = daysToExpire <= 30 && !isExpired;
|
|
2824
|
-
var showMenuButton = !isExpired && (cardsCount === 1 || cardsCount > 1 && !isDefaultCard);
|
|
2825
2824
|
return /*#__PURE__*/React.createElement("div", {
|
|
2826
2825
|
key: card.id,
|
|
2827
2826
|
className: clsx(classes.card, classes[cardClass], (_clsx = {}, _clsx[classes.disabledCard] = isDisabled, _clsx))
|
|
@@ -2841,7 +2840,7 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2841
2840
|
className: classes.cardType
|
|
2842
2841
|
}, getCardTypeLabel(card.category), isDefaultCard && /*#__PURE__*/React.createElement("span", null, ' (Default)'))), isCompanyCard ? /*#__PURE__*/React.createElement(LockIcon, {
|
|
2843
2842
|
className: classes.lockIcon
|
|
2844
|
-
}) :
|
|
2843
|
+
}) : /*#__PURE__*/React.createElement(IconButton, {
|
|
2845
2844
|
size: "small",
|
|
2846
2845
|
onClick: function onClick(e) {
|
|
2847
2846
|
return handleMenuClick(e, card);
|
|
@@ -2850,7 +2849,7 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2850
2849
|
}, /*#__PURE__*/React.createElement(MoreIcon, {
|
|
2851
2850
|
className: clsx(classes.moreIcon, classes[cardClass]),
|
|
2852
2851
|
color: isCompanyCard ? '#2EA363' : '#3D89FF'
|
|
2853
|
-
}))
|
|
2852
|
+
})) ), /*#__PURE__*/React.createElement("div", {
|
|
2854
2853
|
className: classes.cardDetails
|
|
2855
2854
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2856
2855
|
className: classes.cardNumber
|