From cac31d07f977447f7431af6c705c0848402266a5 Mon Sep 17 00:00:00 2001 From: "lokapure.girish" Date: Mon, 29 Jan 2024 21:12:50 +0530 Subject: [PATCH 1/2] hire pro fix --- src/OnboardingSPA/components/StartOptions/index.js | 8 ++++---- src/OnboardingSPA/steps/TheFork/contents.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/OnboardingSPA/components/StartOptions/index.js b/src/OnboardingSPA/components/StartOptions/index.js index 4f2fd8b0f..2987c2eab 100644 --- a/src/OnboardingSPA/components/StartOptions/index.js +++ b/src/OnboardingSPA/components/StartOptions/index.js @@ -8,12 +8,12 @@ import { store as nfdOnboardingStore } from '../../store'; const StartOptions = ( { questionnaire, oldFlow, options } ) => { const navigate = useNavigate(); - const { brandConfig, migrationUrl, currentData } = useSelect( + const { brandConfig, hireProUrl, currentData } = useSelect( ( select ) => { return { brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), - migrationUrl: select( nfdOnboardingStore ).getMigrationUrl(), + hireProUrl: select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), currentData: select( nfdOnboardingStore ).getCurrentOnboardingData(), }; @@ -57,8 +57,8 @@ const StartOptions = ( { questionnaire, oldFlow, options } ) => { return switchFlow( oldFlow ); case 'sitegen': return switchFlow( SITEGEN_FLOW ); - case 'migration': - return window.open( migrationUrl, '_blank' ); + case 'hirepro': + return window.open( hireProUrl, '_blank' ); } }; return ( diff --git a/src/OnboardingSPA/steps/TheFork/contents.js b/src/OnboardingSPA/steps/TheFork/contents.js index 905a7679b..74b59274e 100644 --- a/src/OnboardingSPA/steps/TheFork/contents.js +++ b/src/OnboardingSPA/steps/TheFork/contents.js @@ -32,7 +32,7 @@ const getContents = () => { 'Leave it to our WordPress experts.', 'wp-module-onboarding' ), - flow: 'migration', + flow: 'hirepro', }, ], From 045560225bd08816fa4eed7d6c25bfb5cdca42f8 Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Wed, 31 Jan 2024 18:37:56 +0530 Subject: [PATCH 2/2] Fix lint --- .../components/StartOptions/index.js | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/OnboardingSPA/components/StartOptions/index.js b/src/OnboardingSPA/components/StartOptions/index.js index 2987c2eab..6dbb43305 100644 --- a/src/OnboardingSPA/components/StartOptions/index.js +++ b/src/OnboardingSPA/components/StartOptions/index.js @@ -8,17 +8,15 @@ import { store as nfdOnboardingStore } from '../../store'; const StartOptions = ( { questionnaire, oldFlow, options } ) => { const navigate = useNavigate(); - const { brandConfig, hireProUrl, currentData } = useSelect( - ( select ) => { - return { - brandConfig: - select( nfdOnboardingStore ).getNewfoldBrandConfig(), - hireProUrl: select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), - currentData: - select( nfdOnboardingStore ).getCurrentOnboardingData(), - }; - } - ); + const { brandConfig, hireProUrl, currentData } = useSelect( ( select ) => { + return { + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), + hireProUrl: + select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), + currentData: + select( nfdOnboardingStore ).getCurrentOnboardingData(), + }; + } ); const { updateAllSteps, updateTopSteps,