Skip to content

Commit

Permalink
use TitleView
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Dec 5, 2024
1 parent b2a5369 commit 1fa1eec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
4 changes: 2 additions & 2 deletions packages/fields/src/fields/template-title/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ 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',
label: __( 'Template' ),
placeholder: __( 'No title' ),
id: 'title',
getValue: ( { item } ) => getItemTitle( item ),
render: PageTitleView,
render: TitleView,
enableHiding: false,
enableGlobalSearch: true,
};
Expand Down
11 changes: 0 additions & 11 deletions packages/fields/src/fields/template-title/view.tsx

This file was deleted.

0 comments on commit 1fa1eec

Please sign in to comment.