From 3b6b66497992d78581b58c2caf154b5f552f0c0e Mon Sep 17 00:00:00 2001 From: Luigi Teschio Date: Tue, 26 Nov 2024 11:56:35 +0100 Subject: [PATCH] improve documentation --- packages/fields/README.md | 6 +++++- packages/fields/src/actions/duplicate-template-part.tsx | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/fields/README.md b/packages/fields/README.md index 27e55ddf72076..346c1fc512256 100644 --- a/packages/fields/README.md +++ b/packages/fields/README.md @@ -68,7 +68,11 @@ Undocumented declaration. ### duplicateTemplatePart -Undocumented declaration. +This action is used to duplicate a template part. + +_Type_ + +- `Action< TemplatePart >` ### exportPattern diff --git a/packages/fields/src/actions/duplicate-template-part.tsx b/packages/fields/src/actions/duplicate-template-part.tsx index d48efa89119d8..914ab0bf9cf99 100644 --- a/packages/fields/src/actions/duplicate-template-part.tsx +++ b/packages/fields/src/actions/duplicate-template-part.tsx @@ -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' ),