diff --git a/packages/dataviews/src/components/dataviews-view-config/index.tsx b/packages/dataviews/src/components/dataviews-view-config/index.tsx index c1b564994b7771..ef803c4180063f 100644 --- a/packages/dataviews/src/components/dataviews-view-config/index.tsx +++ b/packages/dataviews/src/components/dataviews-view-config/index.tsx @@ -268,7 +268,7 @@ function BaseFieldItem( { onToggleVisibility, onMoveUp, onMoveDown, - additionalActions, + children, }: { identifier: string; label: string; @@ -282,7 +282,7 @@ function BaseFieldItem( { onToggleVisibility?: () => void; onMoveUp?: () => void; onMoveDown?: () => void; - additionalActions?: ReactNode; + children?: ReactNode; } ) { const focusVisibilityField = () => { // Focus the visibility button to avoid focus loss. @@ -395,7 +395,7 @@ function BaseFieldItem( { } /> ) } - { additionalActions } + { children } @@ -541,8 +541,8 @@ function PreviewFieldItem( { canMove={ false } canHide isInteracting={ isChangingPreview } - additionalActions={ - isVisible && ( + > + { isVisible && (
- ) - } - /> + ) } + ); } diff --git a/packages/editor/src/dataviews/fields/content-preview/content-preview-view.tsx b/packages/editor/src/dataviews/fields/content-preview/content-preview-view.tsx index abe1256d21b8e8..0a5b8387163083 100644 --- a/packages/editor/src/dataviews/fields/content-preview/content-preview-view.tsx +++ b/packages/editor/src/dataviews/fields/content-preview/content-preview-view.tsx @@ -21,7 +21,7 @@ import { store as editorStore } from '../../../store'; const { useGlobalStyle } = unlock( blockEditorPrivateApis ); -function ContentPreviewContainer( { +function PostPreviewContainer( { template, post, }: { @@ -62,7 +62,7 @@ function ContentPreviewContainer( { ); } -export default function ContentPreviewView( { item }: { item: BasePost } ) { +export default function PostPreviewView( { item }: { item: BasePost } ) { const { settings, template } = useSelect( ( select ) => { const { canUser, getPostType, getTemplateId, getEntityRecord } = @@ -102,7 +102,7 @@ export default function ContentPreviewView( { item }: { item: BasePost } ) { settings={ settings } __unstableTemplate={ template } > -