From 3d1d9cf81d1c8c3e39aa3a45f5e6dd04c6c70516 Mon Sep 17 00:00:00 2001 From: ntsekouras Date: Fri, 23 Jun 2023 13:00:26 +0300 Subject: [PATCH] simplify a bit --- .../add-new-template/new-template.js | 28 ++++++++----------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/packages/edit-site/src/components/add-new-template/new-template.js b/packages/edit-site/src/components/add-new-template/new-template.js index 5405c426e52ffe..0c6ab03899cc81 100644 --- a/packages/edit-site/src/components/add-new-template/new-template.js +++ b/packages/edit-site/src/components/add-new-template/new-template.js @@ -98,17 +98,16 @@ function TemplateListItem( { direction, className, description, - hideDescription = true, icon, onClick, - showTooltip = true, + children, } ) { return ( @@ -335,18 +328,21 @@ export default function NewTemplate( { title={ __( 'Custom template' ) } direction="row" className="edit-site-add-new-template__custom-template-button" - description={ __( - 'A custom template can be manually applied to any post or page.' - ) } - hideDescription={ false } - showTooltip={ false } icon={ edit } onClick={ () => setModalContent( modalContentMap.customGenericTemplate ) } - /> + > + + { __( + 'A custom template can be manually applied to any post or page.' + ) } + + ) } { modalContent === modalContentMap.customTemplate && (