From 0c195cf9641963bf31cf72e0c9e099d430211640 Mon Sep 17 00:00:00 2001 From: "lokapure.girish" Date: Wed, 28 Feb 2024 13:18:23 +0530 Subject: [PATCH] lint fixes --- src/OnboardingSPA/data/flows/default.js | 8 ++++++-- src/OnboardingSPA/data/flows/ecommerce.js | 8 ++++++-- src/OnboardingSPA/steps/TheFork/index.js | 13 +++++-------- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/OnboardingSPA/data/flows/default.js b/src/OnboardingSPA/data/flows/default.js index 7ace3da04..a5d1c865c 100644 --- a/src/OnboardingSPA/data/flows/default.js +++ b/src/OnboardingSPA/data/flows/default.js @@ -22,7 +22,9 @@ export const initialChapters = [ demographic, design, layoutContent, features ]; export const getSteps = ( chapters = initialChapters ) => { let steps = []; - if ( validateFlow( window.nfdOnboarding.currentBrand.config, SITEGEN_FLOW ) ) { + if ( + validateFlow( window.nfdOnboarding.currentBrand.config, SITEGEN_FLOW ) + ) { steps.push( stepTheFork ); } steps.push( stepWelcome ); @@ -38,7 +40,9 @@ export const getSteps = ( chapters = initialChapters ) => { export const getRoutes = ( chapters = initialChapters ) => { let routes = [ ...pages ]; - if ( validateFlow( window.nfdOnboarding.currentBrand.config, SITEGEN_FLOW ) ) { + if ( + validateFlow( window.nfdOnboarding.currentBrand.config, SITEGEN_FLOW ) + ) { routes.push( stepTheFork ); } routes.push( stepWelcome ); diff --git a/src/OnboardingSPA/data/flows/ecommerce.js b/src/OnboardingSPA/data/flows/ecommerce.js index 687358b89..a63543778 100644 --- a/src/OnboardingSPA/data/flows/ecommerce.js +++ b/src/OnboardingSPA/data/flows/ecommerce.js @@ -34,7 +34,9 @@ export const initialChapters = [ export const getSteps = ( chapters = initialChapters ) => { let steps = []; - if ( validateFlow( window.nfdOnboarding.currentBrand.config, SITEGEN_FLOW ) ) { + if ( + validateFlow( window.nfdOnboarding.currentBrand.config, SITEGEN_FLOW ) + ) { steps.push( stepTheFork ); } @@ -54,7 +56,9 @@ export const getSteps = ( chapters = initialChapters ) => { export const getRoutes = ( chapters = initialChapters ) => { let routes = [ ...pages ]; - if ( validateFlow( window.nfdOnboarding.currentBrand.config, SITEGEN_FLOW ) ) { + if ( + validateFlow( window.nfdOnboarding.currentBrand.config, SITEGEN_FLOW ) + ) { routes.push( stepTheFork ); } routes.push( stepWelcome ); diff --git a/src/OnboardingSPA/steps/TheFork/index.js b/src/OnboardingSPA/steps/TheFork/index.js index 2002aa8fa..1ee659af7 100644 --- a/src/OnboardingSPA/steps/TheFork/index.js +++ b/src/OnboardingSPA/steps/TheFork/index.js @@ -17,14 +17,11 @@ import getContents from './contents'; import SitegenAiStateHandler from '../../components/StateHandlers/SitegenAi'; const TheFork = () => { - const { migrationUrl } = useSelect( - ( select ) => { - return { - migrationUrl: select( nfdOnboardingStore ).getMigrationUrl(), - - }; - } - ); + const { migrationUrl } = useSelect( ( select ) => { + return { + migrationUrl: select( nfdOnboardingStore ).getMigrationUrl(), + }; + } ); const { setIsHeaderEnabled,