Skip to content

Commit

Permalink
feat(slides-panel): isThumbnail prop is added for slides panel item
Browse files Browse the repository at this point in the history
  • Loading branch information
ozsirmajotform committed Dec 26, 2023
1 parent 3cf1704 commit be0418a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Panels/SlidesPanel/SortablePageItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const SortablePageItem = SortableElement(({
acceptedItems={acceptedItems}
additionalPageItems={additionalPageItems}
hashCode={hashCode}
isThumbnail
itemAccessor={itemAccessor}
items={page.items}
style={pageContainerStyle}
Expand Down
4 changes: 4 additions & 0 deletions src/components/Preview/StaticPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const StaticPage = ({
acceptedItems,
additionalPageItems,
hashCode,
isThumbnail,
itemAccessor,
items,
style,
Expand All @@ -36,6 +37,7 @@ const StaticPage = ({
>
{ReportItem => (
<ReportItem
isThumbnail={isThumbnail}
item={mergedItem}
itemAccessor={itemAccessor}
/>
Expand All @@ -53,6 +55,7 @@ StaticPage.propTypes = {
acceptedItems: PropTypes.shape({}),
additionalPageItems: PropTypes.arrayOf(PropTypes.node),
hashCode: PropTypes.string,
isThumbnail: PropTypes.bool,
itemAccessor: PropTypes.func,
items: PropTypes.arrayOf(PropTypes.shape({})),
style: PropTypes.shape({}),
Expand All @@ -62,6 +65,7 @@ StaticPage.defaultProps = {
acceptedItems: {},
additionalPageItems: [],
hashCode: '',
isThumbnail: false,
itemAccessor: () => {},
items: [],
style: {},
Expand Down

0 comments on commit be0418a

Please sign in to comment.