Skip to content

Commit

Permalink
Revert "lint fixes"
Browse files Browse the repository at this point in the history
This reverts commit 0c195cf.
  • Loading branch information
girish-lokapure committed Feb 28, 2024
1 parent 0c195cf commit e473479
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
8 changes: 2 additions & 6 deletions src/OnboardingSPA/data/flows/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ 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 @@ -40,9 +38,7 @@ 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: 2 additions & 6 deletions src/OnboardingSPA/data/flows/ecommerce.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ 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 @@ -56,9 +54,7 @@ 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: 8 additions & 5 deletions src/OnboardingSPA/steps/TheFork/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ 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 e473479

Please sign in to comment.