diff --git a/src/OnboardingSPA/components/LivePreview/SiteGenCard/index.js b/src/OnboardingSPA/components/LivePreview/SiteGenCard/index.js index 036d81d70..d24f36db2 100644 --- a/src/OnboardingSPA/components/LivePreview/SiteGenCard/index.js +++ b/src/OnboardingSPA/components/LivePreview/SiteGenCard/index.js @@ -90,13 +90,15 @@ const LivePreviewSiteGenCard = ( { { title } -
{ __( 'All Versions', 'wp-module-onboarding' ) }
diff --git a/src/OnboardingSPA/steps/SiteGen/Preview/index.js b/src/OnboardingSPA/steps/SiteGen/Preview/index.js index ec2b09391..2db283565 100644 --- a/src/OnboardingSPA/steps/SiteGen/Preview/index.js +++ b/src/OnboardingSPA/steps/SiteGen/Preview/index.js @@ -58,11 +58,11 @@ const SiteGenPreview = () => { }; } } ); - currentData.sitegen.homepages.data = homepagesResponse; - setCurrentOnboardingData( currentData ); homepagesResponse.forEach( ( homepage ) => { homepagesObject[ homepage.slug ] = homepage; } ); + currentData.sitegen.homepages.data = homepagesObject; + setCurrentOnboardingData( currentData ); } else { homepagesObject = currentData.sitegen.homepages.data; } diff --git a/src/OnboardingSPA/steps/SiteGen/Preview/stylesheet.scss b/src/OnboardingSPA/steps/SiteGen/Preview/stylesheet.scss index 825c9aa2f..27a3ea8c7 100644 --- a/src/OnboardingSPA/steps/SiteGen/Preview/stylesheet.scss +++ b/src/OnboardingSPA/steps/SiteGen/Preview/stylesheet.scss @@ -13,7 +13,7 @@ color: var(--nfd-onboarding-primary); display: flex; flex-direction: column; - width: 450px; + width: 420px; justify-content: center; align-items: center; margin: 16px 0;