medipass / react-payment-inputs

A React Hook & Container to help with payment card input fields.
https://medipass.github.io/react-payment-inputs
341 stars 62 forks source link

Form library examples missed out getCardImageProps import #57

Open vivianuol opened 3 years ago

vivianuol commented 3 years ago
Seddy24 commented 1 year ago

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?

chbrown1293 commented 1 year ago

Same issue here

Seddy24 commented 1 year ago

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