Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form library examples missed out getCardImageProps import #57

Open
vivianuol opened this issue Mar 2, 2021 · 3 comments
Open

Form library examples missed out getCardImageProps import #57

vivianuol opened this issue Mar 2, 2021 · 3 comments

Comments

@vivianuol
Copy link

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

Seddy24 commented Nov 18, 2022

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
Copy link

Same issue here

@Seddy24
Copy link

Seddy24 commented Nov 28, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants