@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.
@@ -3,6 +3,7 @@ import React, { useState, Fragment as Fragment$1, useEffect, memo, useRef } from
3
3
  import { configs, services, utilUrls } from '@itilite/utils';
4
4
  import axios from 'axios';
5
5
  import { IconButton, Menu, MenuItem, Popper, Grow, Paper, ClickAwayListener, MenuList, Typography, Box } from '@material-ui/core';
6
+ import { PaymentIcon } from 'react-svg-credit-card-payment-icons';
6
7
  import { useDispatch, useSelector, Provider } from 'react-redux';
7
8
  import { combineReducers, createStore, applyMiddleware } from 'redux';
8
9
  import thunk from 'redux-thunk';
@@ -2277,12 +2278,12 @@ var CardsManagement = function CardsManagement(_ref) {
2277
2278
  handleMenuClose();
2278
2279
  };
2279
2280
  var getBrandLogo = function getBrandLogo(brand) {
2280
- var logos = {
2281
- visa: 'https://upload.wikimedia.org/wikipedia/commons/0/04/Visa.svg',
2282
- mastercard: 'https://upload.wikimedia.org/wikipedia/commons/2/2a/Mastercard-logo.svg',
2283
- amex: 'https://upload.wikimedia.org/wikipedia/commons/3/30/American_Express_logo.svg'
2284
- };
2285
- return logos[brand.toLowerCase()] || '';
2281
+ return /*#__PURE__*/React.createElement(PaymentIcon, {
2282
+ type: brand === null || brand === void 0 ? void 0 : brand.toLowerCase(),
2283
+ format: "flatRounded",
2284
+ width: 40,
2285
+ height: 24
2286
+ });
2286
2287
  };
2287
2288
  var getCardTypeClass = function getCardTypeClass(category) {
2288
2289
  return category === 'Corporate' ? 'corporate' : category === 'Company' ? 'company' : 'personal';