From 42cd04a296f044517f700861767a4e0f79561a45 Mon Sep 17 00:00:00 2001 From: Marin Atanasov <8436925+tyxla@users.noreply.github.com> Date: Wed, 28 Jun 2023 11:24:03 +0300 Subject: [PATCH] Lodash: Refactor away from _.kebabCase() in add page modal (#51911) --- packages/edit-site/src/components/add-new-page/index.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/edit-site/src/components/add-new-page/index.js b/packages/edit-site/src/components/add-new-page/index.js index 5b3f642625111..0c8efa3dfaa0b 100644 --- a/packages/edit-site/src/components/add-new-page/index.js +++ b/packages/edit-site/src/components/add-new-page/index.js @@ -1,8 +1,3 @@ -/** - * External dependencies - */ -import { kebabCase } from 'lodash'; - /** * WordPress dependencies */ @@ -41,7 +36,7 @@ export default function AddNewPageModal( { onSave, onClose } ) { { status: 'draft', title, - slug: kebabCase( title || __( 'No title' ) ), + slug: title || __( 'No title' ), }, { throwOnError: true } );