Skip to content

Commit

Permalink
improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gigitux committed Nov 26, 2024
1 parent 63247d0 commit 3b6b664
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/fields/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ Undocumented declaration.

### duplicateTemplatePart

Undocumented declaration.
This action is used to duplicate a template part.

_Type_

- `Action< TemplatePart >`

### exportPattern

Expand Down
3 changes: 3 additions & 0 deletions packages/fields/src/actions/duplicate-template-part.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ import type { TemplatePart } from '../types';
import { CreateTemplatePartModalContents } from '../components/create-template-part-modal';
import { getItemTitle } from './utils';

/**
* This action is used to duplicate a template part.
*/
const duplicateTemplatePart: Action< TemplatePart > = {
id: 'duplicate-template-part',
label: _x( 'Duplicate', 'action label' ),
Expand Down

0 comments on commit 3b6b664

Please sign in to comment.