From 8ebf4fb6f8423857089141a780b223d9b7b38f95 Mon Sep 17 00:00:00 2001 From: ntsekouras Date: Thu, 5 Dec 2024 08:54:33 +0200 Subject: [PATCH] use TitleView --- packages/fields/src/fields/template-title/index.ts | 4 ++-- packages/fields/src/fields/template-title/view.tsx | 11 ----------- 2 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 packages/fields/src/fields/template-title/view.tsx diff --git a/packages/fields/src/fields/template-title/index.ts b/packages/fields/src/fields/template-title/index.ts index 738082b6ebb210..e0d83d6ffda8f6 100644 --- a/packages/fields/src/fields/template-title/index.ts +++ b/packages/fields/src/fields/template-title/index.ts @@ -9,7 +9,7 @@ import { __ } from '@wordpress/i18n'; */ import type { Template } from '../../types'; import { getItemTitle } from '../../actions/utils'; -import PageTitleView from './view'; +import TitleView from '../title/view'; const templateTitleField: Field< Template > = { type: 'text', @@ -17,7 +17,7 @@ const templateTitleField: Field< Template > = { placeholder: __( 'No title' ), id: 'title', getValue: ( { item } ) => getItemTitle( item ), - render: PageTitleView, + render: TitleView, enableHiding: false, enableGlobalSearch: true, }; diff --git a/packages/fields/src/fields/template-title/view.tsx b/packages/fields/src/fields/template-title/view.tsx deleted file mode 100644 index fea50e9089061e..00000000000000 --- a/packages/fields/src/fields/template-title/view.tsx +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Internal dependencies - */ -import type { Template } from '../../types'; -import { BaseTitleView } from '../title/view'; - -export default function PageTitleView( { item }: { item: Template } ) { - return ( - - ); -}