Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
girish-lokapure committed Feb 28, 2024
1 parent dcafcf4 commit 0c195cf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
8 changes: 6 additions & 2 deletions src/OnboardingSPA/data/flows/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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 );
Expand Down
8 changes: 6 additions & 2 deletions src/OnboardingSPA/data/flows/ecommerce.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

Expand All @@ -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 );
Expand Down
13 changes: 5 additions & 8 deletions src/OnboardingSPA/steps/TheFork/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0c195cf

Please sign in to comment.