Skip to content

Commit

Permalink
refactor: resolve es lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
prachigarg19 committed Jan 27, 2023
1 parent 5b0ca60 commit 4c7b72e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/Utils/stripe/stripeHelpers.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { ReactElement } from "react";
import AmexIcon from "../../../public/assets/icons/CreditCardIcons/AmexIcon";
import DinersClub from "../../../public/assets/icons/CreditCardIcons/DinersClub";
Expand Down Expand Up @@ -44,21 +43,6 @@ export function formatAmountForStripe(
export const getCardBrand = (brand: string): ReactElement => {
switch (brand) {
case "visa":
return <VisaIcon />;
case "mastercard":
return <Mastercard />;
case "amex":
return <AmexIcon />;
case "discover":
return <DiscoverIcon />;
case "diners":
return <DinersClub />;
case "jcb":
return <JcbIcon />;
case "unionpay":
return <StripeIcon />;
case "unknown":
return <StripeIcon />;
return <VisaIcon color="currentColor" />;
case "mastercard":
return <Mastercard color="currentColor" />;
Expand Down

0 comments on commit 4c7b72e

Please sign in to comment.