Skip to content

Commit 30c43d9

Browse files
authored
Launches the Cancel button for the migration flow (#103715)
1 parent 7c66001 commit 30c43d9

File tree

8 files changed

+0
-17
lines changed

8 files changed

+0
-17
lines changed

client/sites/overview/components/migration-overview/components/cancel-difm-migration/index.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { isEnabled } from '@automattic/calypso-config';
21
import { Modal, Button } from '@wordpress/components';
32
import { useTranslate } from 'i18n-calypso';
43
import { useState } from 'react';
@@ -108,10 +107,6 @@ const CancelDifmMigrationForm = ( { siteId }: { siteId: number } ) => {
108107

109108
const { site, isMigrationCompleted, isMigrationInProgress } = useSiteMigrationStatus( siteId );
110109

111-
if ( ! isEnabled( 'migration-flow/cancel-difm' ) ) {
112-
return null;
113-
}
114-
115110
if ( ! site ) {
116111
return null;
117112
}

client/sites/overview/components/migration-overview/components/cancel-difm-migration/test/index.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ describe( 'CancelDifmMigrationForm', () => {
4545
} );
4646
} );
4747

48-
it( 'renders nothing if feature flag is disabled', () => {
49-
isEnabled.mockReturnValue( false );
50-
renderWithProvider( <CancelDifmMigrationForm siteId={ siteId } /> );
51-
expect( screen.queryByRole( 'button', { name: /cancel migration/i } ) ).toBeNull();
52-
} );
53-
5448
describe( 'when migration is not in progress', () => {
5549
beforeEach( () => {
5650
useSiteMigrationStatus.mockReturnValue( {

config/development.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@
121121
"me/account/color-scheme-picker": true,
122122
"migration-flow/experiment": false,
123123
"migration-flow/introductory-offer": true,
124-
"migration-flow/cancel-difm": true,
125124
"oauth": false,
126125
"onboarding/create-course": false,
127126
"onboarding/import": true,

config/horizon.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
"me/account/color-scheme-picker": true,
7979
"migration-flow/experiment": false,
8080
"migration-flow/introductory-offer": true,
81-
"migration-flow/cancel-difm": true,
8281
"onboarding/create-course": false,
8382
"onboarding/step-container-v2-import-flow": true,
8483
"onboarding/step-container-v2-migration-flow": true,

config/production.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
"me/account/color-scheme-picker": true,
9696
"migration-flow/experiment": false,
9797
"migration-flow/introductory-offer": true,
98-
"migration-flow/cancel-difm": false,
9998
"onboarding/create-course": false,
10099
"onboarding/import": true,
101100
"onboarding/import-from-blogger": true,

config/stage.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
"me/account/color-scheme-picker": true,
9494
"migration-flow/experiment": false,
9595
"migration-flow/introductory-offer": true,
96-
"migration-flow/cancel-difm": false,
9796
"onboarding/create-course": false,
9897
"onboarding/import": true,
9998
"onboarding/import-from-blogger": true,

config/test.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
"me/account-close": true,
7676
"migration-flow/experiment": false,
7777
"migration-flow/introductory-offer": true,
78-
"migration-flow/cancel-difm": false,
7978
"onboarding/create-course": false,
8079
"onboarding/import": true,
8180
"onboarding/import-from-blogger": true,

config/wpcalypso.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@
9898
"me/account/color-scheme-picker": true,
9999
"migration-flow/experiment": false,
100100
"migration-flow/introductory-offer": true,
101-
"migration-flow/cancel-difm": false,
102101
"onboarding/create-course": false,
103102
"onboarding/import": true,
104103
"onboarding/import-from-blogger": true,

0 commit comments

Comments
 (0)