medipass/react-payment-inputs

Form library examples missed out getCardImageProps import

Opened this issue · 3 comments

  • Please include import images from 'react-payment-inputs/images' in Form library examples

I tried to import using "@types/react-payment-inputs": "^1.1.0" But I still can't get the images to import.

Type 'typeof import("C:/../node_modules/@types/react-payment-inputs/images/index")' is missing the following properties from type 'CardImages': amex, dinersclub, discover, hipercard, and 5 more.

Anyone get this to work?

Same issue here

I worked around it by using just a .jsx file and then the images loaded. A little weird since everything else in my project is a .tsx file but it will work for now.

image