From afa8b5c8b222a8c8d452e84d8b5ffc42c6027b92 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Thu, 1 Feb 2024 20:38:32 +0900 Subject: [PATCH] Font Library: Use Button's API to disable footer buttons (#58529) --- .../global-styles/font-library-modal/font-collection.js | 7 +++---- .../global-styles/font-library-modal/installed-fonts.js | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/edit-site/src/components/global-styles/font-library-modal/font-collection.js b/packages/edit-site/src/components/global-styles/font-library-modal/font-collection.js index 9735ce1c35a4de..4a14ee245694b8 100644 --- a/packages/edit-site/src/components/global-styles/font-library-modal/font-collection.js +++ b/packages/edit-site/src/components/global-styles/font-library-modal/font-collection.js @@ -298,11 +298,10 @@ function Footer( { handleInstall, isDisabled } ) { diff --git a/packages/edit-site/src/components/global-styles/font-library-modal/installed-fonts.js b/packages/edit-site/src/components/global-styles/font-library-modal/installed-fonts.js index cbe9927187e829..73ff17f25b9a66 100644 --- a/packages/edit-site/src/components/global-styles/font-library-modal/installed-fonts.js +++ b/packages/edit-site/src/components/global-styles/font-library-modal/installed-fonts.js @@ -186,11 +186,10 @@ function Footer( { shouldDisplayDeleteButton, handleUninstallClick } ) { ) }