From efa05f68ffb20aa9cb63e449cabc7780522d3d1e Mon Sep 17 00:00:00 2001 From: Gabriel Caires Date: Mon, 30 Sep 2024 17:00:27 +0100 Subject: [PATCH] Reapply the changes --- .../components/form/index.tsx | 26 +++++++++---------- .../hooks/use-migration-ticket-mutation.ts | 0 .../index.tsx | 0 .../style.scss | 20 +++++++------- .../test/index.tsx | 0 .../types.ts | 0 .../declarative-flow/internals/steps.tsx | 4 +-- 7 files changed, 24 insertions(+), 26 deletions(-) rename client/landing/stepper/declarative-flow/internals/steps-repository/{site-migration-already-wordpress => site-migration-already-wpcom}/components/form/index.tsx (81%) rename client/landing/stepper/declarative-flow/internals/steps-repository/{site-migration-already-wordpress => site-migration-already-wpcom}/hooks/use-migration-ticket-mutation.ts (100%) rename client/landing/stepper/declarative-flow/internals/steps-repository/{site-migration-already-wordpress => site-migration-already-wpcom}/index.tsx (100%) rename client/landing/stepper/declarative-flow/internals/steps-repository/{site-migration-already-wordpress => site-migration-already-wpcom}/style.scss (53%) rename client/landing/stepper/declarative-flow/internals/steps-repository/{site-migration-already-wordpress => site-migration-already-wpcom}/test/index.tsx (100%) rename client/landing/stepper/declarative-flow/internals/steps-repository/{site-migration-already-wordpress => site-migration-already-wpcom}/types.ts (100%) diff --git a/client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-already-wordpress/components/form/index.tsx b/client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-already-wpcom/components/form/index.tsx similarity index 81% rename from client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-already-wordpress/components/form/index.tsx rename to client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-already-wpcom/components/form/index.tsx index ddcad2a359cb96..220ad2bd32f738 100644 --- a/client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-already-wordpress/components/form/index.tsx +++ b/client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-already-wpcom/components/form/index.tsx @@ -25,7 +25,7 @@ const CheckboxIntents = ( { label, control, value }: CheckboxProps ) => ( render={ ( { field } ) => { return ( { if ( isChecked ) { field.onChange( [ ...field.value, value ] ); @@ -57,7 +57,7 @@ const OtherDetails = ( { label, control, error }: OtherDetailsProps ) => { rules={ { required: translate( 'Please, provide more details.' ) } } render={ ( { field } ) => { return ( -
+
{ label } { placeholder={ translate( 'Share any other details that will help us figure out what we need to do next.' ) } - className={ clsx( 'site-migration-already-wordpress__form-textarea', { - 'site-migration-already-wordpress__form-textarea--error': error, + className={ clsx( 'site-migration-already-wpcom__form-textarea', { + 'site-migration-already-wpcom__form-textarea--error': error, } ) } /> { error && error.message && ( -

{ error.message }

+

{ error.message }

) }
); @@ -129,21 +129,19 @@ const Form: FC< FormProps > = ( { onComplete } ) => { const isOtherChecked = intents.includes( 'other' ); return ( -
-
-
-
+
+ +
+

{ translate( 'What brought you here today?' ) }

{ errors.intents && ( -

- { errors.intents.message } -

+

{ errors.intents.message }

) }
import( './steps-repository/site-migration-already-wordpress' ), + slug: 'already-wpcom', + asyncComponent: () => import( './steps-repository/site-migration-already-wpcom' ), }, PICK_SITE: {