Skip to content

Commit

Permalink
Customize EmailComparison component to match figma design
Browse files Browse the repository at this point in the history
  • Loading branch information
bogiii committed Dec 6, 2024
1 parent 98d08a4 commit b96629e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/my-sites/email/email-management/email-home.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { isEnabled } from '@automattic/calypso-config';
import page from '@automattic/calypso-router';
import { Card } from '@automattic/components';
import clsx from 'clsx';
import { useTranslate } from 'i18n-calypso';
import DocumentHead from 'calypso/components/data/document-head';
import EmptyContent from 'calypso/components/empty-content';
Expand Down Expand Up @@ -96,6 +98,7 @@ const EmailHome = ( props: EmailManagementHomeProps ) => {
return canCurrentUser( state, selectedSite.ID, 'manage_options' );
} );
const hasSitesLoaded = useSelector( hasLoadedSites );
const isAllDomainManagementEnabled = isEnabled( 'calypso/all-domain-management' );

const addEmailForwardMutationActive = useAddEmailForwardMutationIsLoading();

Expand Down Expand Up @@ -131,11 +134,13 @@ const EmailHome = ( props: EmailManagementHomeProps ) => {
if ( ! domainHasEmail( selectedDomain ) ) {
return (
<EmailProvidersStackedComparisonPage
className={ clsx( { 'context-all-domain-management': isAllDomainManagementEnabled } ) }
comparisonContext="email-home-selected-domain"
selectedDomainName={ selectedDomainName }
selectedEmailProviderSlug={ selectedEmailProviderSlug }
selectedIntervalLength={ selectedIntervalLength }
source={ source }
hideNavigation={ isAllDomainManagementEnabled }
/>
);
}
Expand Down

0 comments on commit b96629e

Please sign in to comment.