diff --git a/src/OnboardingSPA/components/MiniPreview/contents.js b/src/OnboardingSPA/components/MiniPreview/contents.js index 13780129c..91c3a8344 100644 --- a/src/OnboardingSPA/components/MiniPreview/contents.js +++ b/src/OnboardingSPA/components/MiniPreview/contents.js @@ -2,7 +2,7 @@ import { __, sprintf } from '@wordpress/i18n'; import { translations } from '../../utils/locales/translations'; -const getContents = ( brandUrl = '' ) => { +const getContents = () => { return { heading: __( 'Preview', 'wp-module-onboarding' ), defaultTitle: sprintf( @@ -15,7 +15,6 @@ const getContents = ( brandUrl = '' ) => { __( 'Just another WordPress %s', 'wp-module-onboarding' ), translations( 'Site' ) ), - defaultUrl: brandUrl, }; }; diff --git a/src/OnboardingSPA/components/MiniPreview/index.js b/src/OnboardingSPA/components/MiniPreview/index.js index 209d8a2e0..333a65e76 100644 --- a/src/OnboardingSPA/components/MiniPreview/index.js +++ b/src/OnboardingSPA/components/MiniPreview/index.js @@ -13,15 +13,14 @@ const MiniPreview = ( { isSocialFormOpen, setIsSocialFormOpen, } ) => { - const { socialDataStore, brandUrl } = useSelect( ( select ) => { + const { socialDataStore } = useSelect( ( select ) => { return { socialDataStore: select( nfdOnboardingStore ).getOnboardingSocialData(), - brandUrl: select( nfdOnboardingStore ).getNewfoldBrandUrl(), }; }, [] ); - const content = getContents( brandUrl ); + const content = getContents(); const titlePreview = title === '' ? content.defaultTitle : title; const descPreview = desc === '' ? content.defaultDesc : desc;