Skip to content

Commit

Permalink
Optimized the carousel tile
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsilaghi committed Apr 13, 2020
1 parent 62b4e8b commit 0e41dc3
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 381 deletions.
371 changes: 0 additions & 371 deletions src/components/Blocks/ImageCards/AttachedImagesListWidget.jsx

This file was deleted.

1 change: 0 additions & 1 deletion src/components/Blocks/ImageCards/ImageCardsView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const byDisplayType = {
};

const ImageCardView = props => {
console.log('ImageCardView', props);
const Impl = byDisplayType[props.data.display || 'carousel'];
return <Impl {...props} />;
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/Blocks/ImageCards/schema.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const ImageCards = {
choices: [['round_tiled', 'Round Tiled'], ['carousel', 'Carousel']],
},
cards: {
widget: 'attachedimages_list',
widget: 'objectlist',
title: 'Images',
// this is an invention, should confront with dexterity serializer
schema: ImageCard,
Expand Down
4 changes: 0 additions & 4 deletions src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ export KeyFactsView from './Blocks/KeyFacts/KeyFactsView';

export ImageCardsView from './Blocks/ImageCards/ImageCardsView';
export ImageCardsEdit from './Blocks/ImageCards/ImageCardsEdit';

export AttachedImagesListWidget, {
AttachedImageWidget,
} from './Blocks/ImageCards/AttachedImagesListWidget';
Loading

0 comments on commit 0e41dc3

Please sign in to comment.