Skip to content

Commit

Permalink
Use rawOnly example parameter in ImageCarousel
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnito committed May 21, 2019
1 parent 926e68f commit 3dd9517
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
12 changes: 0 additions & 12 deletions src/components/ImageCarousel/ImageCarousel.example.css

This file was deleted.

12 changes: 6 additions & 6 deletions src/components/ImageCarousel/ImageCarousel.example.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { types as sdkTypes } from '../../util/sdkLoader';
import ImageCarousel from './ImageCarousel';
import css from './ImageCarousel.example.css';

const { UUID } = sdkTypes;

Expand Down Expand Up @@ -110,8 +109,6 @@ const imageLandscape = {

const ImageCarouselWrapper = props => {
const wrapperStyles = {
width: '100%',
height: 400,
backgroundColor: '#000',
};
return (
Expand All @@ -123,15 +120,18 @@ const ImageCarouselWrapper = props => {

export const NoImages = {
component: ImageCarouselWrapper,
props: { images: [], rootClassName: css.root },
props: { images: [] },
rawOnly: true,
};

export const SingleImage = {
component: ImageCarouselWrapper,
props: { images: [imageSquare], rootClassName: css.root },
props: { images: [imageSquare] },
rawOnly: true,
};

export const MultipleImages = {
component: ImageCarouselWrapper,
props: { images: [imageLandscape, imagePortrait, imageSquare], rootClassName: css.root },
props: { images: [imageLandscape, imagePortrait, imageSquare] },
rawOnly: true,
};

0 comments on commit 3dd9517

Please sign in to comment.