Skip to content

Commit

Permalink
Site Migration: Add the possibility of exiting the Instructions step …
Browse files Browse the repository at this point in the history
…in the Assisted Migration flow (#92289)

* Add an exit to the Do-it-for-me dead-end page

* remove extra space

* Remove unused Button import

---------

Co-authored-by: Mark Biek <[email protected]>
  • Loading branch information
valterlorran and markbiek committed Jul 3, 2024
1 parent f9bfdc4 commit c4bc335
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Button } from '@automattic/components';
import { useLocale } from '@automattic/i18n-utils';
import { StepContainer } from '@automattic/onboarding';
import { createInterpolateElement } from '@wordpress/element';
Expand All @@ -15,6 +14,8 @@ import { recordTracksEvent } from 'calypso/lib/analytics/tracks';
import { UserData } from 'calypso/lib/user/user';
import { useSelector } from 'calypso/state';
import { getCurrentUser } from 'calypso/state/current-user/selectors';
import FlowCard from '../components/flow-card';
import { redirect } from '../import/util';
import { useSubmitMigrationTicket } from './hooks/use-submit-migration-ticket';

const ImporterMigrateMessage: Step = () => {
Expand Down Expand Up @@ -93,12 +94,20 @@ const ImporterMigrateMessage: Step = () => {
{ __( `We'll help you with the domain changes after the migration is completed.` ) }
</div>
<div className="migration-message__actions">
<Button primary transparent href={ `/home/${ siteSlug }` }>
{ __( 'Let me explore' ) }
</Button>
<Button primary transparent href="/support">
{ __( 'Help me learn' ) }
</Button>
<FlowCard
title={ __( 'Let me explore' ) }
text={ __(
'Discover more features and options available on WordPress.com on your own.'
) }
onClick={ () => redirect( `/home/${ siteSlug }` ) }
/>
<FlowCard
title={ __( 'Help me learn' ) }
text={ __(
'Access guides and tutorials to better understand how to use WordPress.com.'
) }
onClick={ () => redirect( '/support' ) }
/>
</div>
</>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

.migration-message__actions {
display: flex;
gap: 2em;
margin-top: 3em; /* could also work with padding-top */
justify-content: center;
margin: 0 -10px;
}
}

0 comments on commit c4bc335

Please sign in to comment.