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

Unable to import custom image in Carousel #1614

Closed
rohitmi0023 opened this issue Sep 5, 2019 · 2 comments
Closed

Unable to import custom image in Carousel #1614

rohitmi0023 opened this issue Sep 5, 2019 · 2 comments

Comments

@rohitmi0023
Copy link

Issue description

  • components: Carousel

What is happening?

Rather than displaying an image it displays the alternate text.

Code

carousel-code

carousel-structure

For full code of GetCarousel.js file, refer to https://hatebin.com/sqbiahbpfu

@baktiaditya
Copy link

baktiaditya commented Oct 7, 2019

Simply remove the curly brackets

const items = [
    {
        src: CustomImage,
        id: '1',
        altText: 'Testing'
    },
    ...
]

@TheSharpieOne
Copy link
Member

I'm closing this since the the issue is no longer active and it appears it was answered above. Please comment and it will be opened if you feel the issue has not been resolved / the question has not been answered.

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