Skip to content

Commit

Permalink
πŸ› Followup fix from BaseCarousel β†’ BentoBaseCarousel rename (ampproje…
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrozenberg authored and rbeckthomas committed Sep 14, 2021
1 parent a5342e6 commit 8a37916
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions extensions/amp-inline-gallery/1.0/storybook/Basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Preact from '#preact';
import {BaseCarousel} from '../../../amp-base-carousel/1.0/component';
import {BentoBaseCarousel} from '../../../amp-base-carousel/1.0/component';
import {InlineGallery} from '../component';
import {Pagination} from '../pagination';
import {Thumbnails} from '../thumbnails';
Expand Down Expand Up @@ -42,7 +42,7 @@ export const _default = () => {
<br />
<Thumbnails />
<br />
<BaseCarousel
<BentoBaseCarousel
style={{height}}
autoAdvanceCount={autoAdvanceCount}
autoAdvanceInterval={autoAdvanceInterval}
Expand Down Expand Up @@ -74,7 +74,7 @@ export const _default = () => {
src="https://images.unsplash.com/photo-1603123853880-a92fafb7809f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1498&q=80"
thumbnailSrc="https://images.unsplash.com/photo-1603123853880-a92fafb7809f?ixlib=rb-1.2.1&auto=format&fit=crop&w=120&q=80"
/>
</BaseCarousel>
</BentoBaseCarousel>
<Pagination inset={bottomInset} />
</InlineGallery>
Content below carousel
Expand Down Expand Up @@ -114,9 +114,9 @@ export const WithLooping = () => {

return (
<InlineGallery style={{width, position: 'relative'}}>
<BaseCarousel loop style={{height, position: 'relative'}}>
<BentoBaseCarousel loop style={{height, position: 'relative'}}>
{slides}
</BaseCarousel>
</BentoBaseCarousel>
<Pagination inset={inset} style={{height: paginationHeight}} />
<Thumbnails
aspectRatio={aspectRatio}
Expand Down
10 changes: 5 additions & 5 deletions extensions/amp-lightbox-gallery/1.0/storybook/Basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {withKnobs} from '@storybook/addon-knobs';

import * as Preact from '#preact';

import {BaseCarousel} from '../../../amp-base-carousel/1.0/component';
import {BentoBaseCarousel} from '../../../amp-base-carousel/1.0/component';
import {LightboxGalleryProvider, WithLightbox} from '../component';

export default {
Expand Down Expand Up @@ -77,7 +77,7 @@ export const carousel = () => {
}
`}</style>
<LightboxGalleryProvider>
<BaseCarousel lightbox style={{width: '240px', height: '160px'}}>
<BentoBaseCarousel lightbox style={{width: '240px', height: '160px'}}>
<img
src="https://images.unsplash.com/photo-1583511655857-d19b40a7a54e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1498&q=80"
thumbnailSrc="https://images.unsplash.com/photo-1583511655857-d19b40a7a54e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=120&q=80"
Expand All @@ -102,7 +102,7 @@ export const carousel = () => {
src="https://images.unsplash.com/photo-1603123853880-a92fafb7809f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1498&q=80"
thumbnailSrc="https://images.unsplash.com/photo-1603123853880-a92fafb7809f?ixlib=rb-1.2.1&auto=format&fit=crop&w=120&q=80"
/>
</BaseCarousel>
</BentoBaseCarousel>
</LightboxGalleryProvider>
</>
);
Expand Down Expand Up @@ -140,7 +140,7 @@ export const grouping = () => {
<WithLightbox aria-label="This is the caption for the third image.">
<img src="https://images.unsplash.com/photo-1599839575945-a9e5af0c3fa5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjQwMzA0fQ&auto=format&fit=crop&w=1498&q=80" />
</WithLightbox>
<BaseCarousel lightbox style={{width: '240px', height: '160px'}}>
<BentoBaseCarousel lightbox style={{width: '240px', height: '160px'}}>
<img
alt="Image 1 long. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum is simply dummy text of the printing and typesetting industry."
src="https://images.unsplash.com/photo-1583512603806-077998240c7a?ixlib=rb-1.2.1&auto=format&fit=crop&w=1498&q=80"
Expand All @@ -156,7 +156,7 @@ export const grouping = () => {
src="https://images.unsplash.com/photo-1603123853880-a92fafb7809f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1498&q=80"
thumbnailSrc="https://images.unsplash.com/photo-1603123853880-a92fafb7809f?ixlib=rb-1.2.1&auto=format&fit=crop&w=120&q=80"
/>
</BaseCarousel>
</BentoBaseCarousel>
</LightboxGalleryProvider>
</>
);
Expand Down

0 comments on commit 8a37916

Please sign in to comment.