CYS - AI flow: fix regression - no fonts visible (#44280)

* CYS - AI flow: fix regression - no fonts visible

* Add changefile(s) from automation for the following project(s): woocommerce

* Trigger Build

* fix lint error

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Luigi Teschio 2024-02-01 19:44:28 +01:00 committed by GitHub
parent 33c2c0c0ca
commit ae1503f588
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -19,7 +19,6 @@ import {
// @ts-ignore No types for this exist yet.
import { unlock } from '@wordpress/edit-site/build-module/lock-unlock';
import { GlobalStylesVariationIframe } from '../global-styles-variation-iframe';
import { FontFamiliesLoader } from './font-families-loader';
import {
FONT_PREVIEW_LARGE_WIDTH,
FONT_PREVIEW_LARGE_HEIGHT,
@ -29,6 +28,7 @@ import {
import { FontFamily } from '~/customize-store/types/font';
import { CustomizeStoreContext } from '~/customize-store/assembler-hub';
import { isAIFlow, isNoAIFlow } from '~/customize-store/guards';
import { FontFamiliesLoaderDotCom } from './font-families-loader-dot-com';
const { useGlobalStyle, useGlobalSetting } = unlock( blockEditorPrivateApis );
@ -176,7 +176,7 @@ export const FontPairingVariationPreview = () => {
</div>
</div>
{ isAIFlow( context.flowType ) && (
<FontFamiliesLoader
<FontFamiliesLoaderDotCom
fontFamilies={ fontFamilies }
onLoad={ handleOnLoad }
/>

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Comment: CYS - AI flow: fix regression - no fonts visible