mirror of https://github.com/rancher/ui.git
18 lines
397 B
JavaScript
18 lines
397 B
JavaScript
import Ember from 'ember';
|
|
|
|
// this list matchse the card types that stripe uses
|
|
const CARDS = {
|
|
"Visa": 'card-visa',
|
|
"American Express": 'card-amex',
|
|
"MasterCard": 'card-mastercard',
|
|
"Discover": 'card-discover',
|
|
"Diners Club": 'card-diners',
|
|
"JCB": 'card-jcb'
|
|
};
|
|
|
|
export function getCardClass(key/*, hash*/) {
|
|
return CARDS[key];
|
|
}
|
|
|
|
export default Ember.Helper.helper(getCardClass);
|