Skip to content

Commit

Permalink
Rename step to SITE_MIGRATION_FALLBACK_CREDENTIALS
Browse files Browse the repository at this point in the history
  • Loading branch information
andregardi committed Dec 2, 2024
1 parent 40d34bf commit a8dbd0f
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { CredentialsForm } from './components/credentials-form';
import type { Step } from '../../types';
import './style.scss';

const SiteMigrationSecureCredentials: Step = function ( { navigation } ) {
const SiteMigrationFallbackCredentials: Step = function ( { navigation } ) {
const translate = useTranslate();
const siteURL = useQuery().get( 'from' ) || '';

Expand Down Expand Up @@ -54,4 +54,4 @@ const SiteMigrationSecureCredentials: Step = function ( { navigation } ) {
);
};

export default SiteMigrationSecureCredentials;
export default SiteMigrationFallbackCredentials;
6 changes: 3 additions & 3 deletions client/landing/stepper/declarative-flow/internals/steps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ export const STEPS = {
asyncComponent: () => import( './steps-repository/site-migration-credentials' ),
},

SITE_MIGRATION_SECURE_CREDENTIALS: {
slug: 'site-migration-secure-credentials',
asyncComponent: () => import( './steps-repository/site-migration-secure-credentials' ),
SITE_MIGRATION_FALLBACK_CREDENTIALS: {
slug: 'site-migration-fallback-credentials',
asyncComponent: () => import( './steps-repository/site-migration-fallback-credentials' ),
},

SITE_MIGRATION_APPLICATION_PASSWORDS_APPROVAL: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const siteMigration: Flow = {
STEPS.SITE_MIGRATION_ASSISTED_MIGRATION,
STEPS.SITE_MIGRATION_SOURCE_URL,
STEPS.SITE_MIGRATION_APPLICATION_PASSWORDS_APPROVAL,
STEPS.SITE_MIGRATION_SECURE_CREDENTIALS,
STEPS.SITE_MIGRATION_FALLBACK_CREDENTIALS,
STEPS.SITE_MIGRATION_CREDENTIALS,
STEPS.SITE_MIGRATION_ALREADY_WPCOM,
STEPS.SITE_MIGRATION_OTHER_PLATFORM_DETECTED_IMPORT,
Expand Down Expand Up @@ -469,7 +469,7 @@ const siteMigration: Flow = {
return navigate(
addQueryArgs(
{ siteId, from: from || fromQueryParam, siteSlug },
STEPS.SITE_MIGRATION_SECURE_CREDENTIALS.slug
STEPS.SITE_MIGRATION_FALLBACK_CREDENTIALS.slug
)
);
}
Expand All @@ -482,7 +482,7 @@ const siteMigration: Flow = {
);
}

case STEPS.SITE_MIGRATION_SECURE_CREDENTIALS.slug: {
case STEPS.SITE_MIGRATION_FALLBACK_CREDENTIALS.slug: {
const { action, from } = providedDependencies as {
action: 'skip' | 'submit';
from: string;
Expand Down

0 comments on commit a8dbd0f

Please sign in to comment.