mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Use rawOnly example parameter in ImageCarousel
This commit is contained in:
parent
926e68f854
commit
3dd951792f
2 changed files with 6 additions and 18 deletions
|
|
@ -1,12 +0,0 @@
|
|||
@import '../../marketplace.css';
|
||||
|
||||
.root {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
|
||||
@media (--viewportMedium) {
|
||||
padding: 100px 10vw;
|
||||
}
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
||||
|
|
@ -110,8 +109,6 @@ const imageLandscape = {
|
|||
|
||||
const ImageCarouselWrapper = props => {
|
||||
const wrapperStyles = {
|
||||
width: '100%',
|
||||
height: 400,
|
||||
backgroundColor: '#000',
|
||||
};
|
||||
return (
|
||||
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue