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

fix: remove unnecessary params being passed to amp-carousel #220

Merged
merged 3 commits into from
Jun 30, 2020

Conversation

ags1773
Copy link
Contributor

@ags1773 ags1773 commented Jun 30, 2020

@ags1773 ags1773 requested a review from shraddha-kesari June 30, 2020 06:36
@@ -14,7 +14,7 @@ export const Carousel = ({ children, ...props }: CarouselTypes) => {
/>
</Helmet>
{props.lightbox && <LightboxGallery />}
<amp-carousel {...props}>{children}</amp-carousel>
<amp-carousel {...props} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are passing <amp-img> as children to <amp-carousel>. Is it fine, if you remove it ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

children is also part of props so <amp-carousel {...props}>{children}</amp-carousel> is same as <amp-carousel {...props} />

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

@ags1773 ags1773 merged commit 9cbf9a8 into master Jun 30, 2020
@delete-merged-branch delete-merged-branch bot deleted the amp-carousel-bugfix branch June 30, 2020 13:35
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

Successfully merging this pull request may close these issues.

2 participants