@itilite/iui-user-management 1.4.7724 → 1.4.7726

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.
Binary file
Binary file
Binary file
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ var React__default = _interopDefault(React);
6
6
  var utils = require('@itilite/utils');
7
7
  var axios = _interopDefault(require('axios'));
8
8
  var core = require('@material-ui/core');
9
+ var reactSvgCreditCardPaymentIcons = require('react-svg-credit-card-payment-icons');
9
10
  var reactRedux = require('react-redux');
10
11
  var redux = require('redux');
11
12
  var thunk = _interopDefault(require('redux-thunk'));
@@ -2280,12 +2281,12 @@ var CardsManagement = function CardsManagement(_ref) {
2280
2281
  handleMenuClose();
2281
2282
  };
2282
2283
  var getBrandLogo = function getBrandLogo(brand) {
2283
- var logos = {
2284
- visa: 'https://upload.wikimedia.org/wikipedia/commons/0/04/Visa.svg',
2285
- mastercard: 'https://upload.wikimedia.org/wikipedia/commons/2/2a/Mastercard-logo.svg',
2286
- amex: 'https://upload.wikimedia.org/wikipedia/commons/3/30/American_Express_logo.svg'
2287
- };
2288
- return logos[brand.toLowerCase()] || '';
2284
+ return /*#__PURE__*/React__default.createElement(reactSvgCreditCardPaymentIcons.PaymentIcon, {
2285
+ type: brand === null || brand === void 0 ? void 0 : brand.toLowerCase(),
2286
+ format: "flatRounded",
2287
+ width: 40,
2288
+ height: 24
2289
+ });
2289
2290
  };
2290
2291
  var getCardTypeClass = function getCardTypeClass(category) {
2291
2292
  return category === 'Corporate' ? 'corporate' : category === 'Company' ? 'company' : 'personal';