Skip to content

Commit

Permalink
Domains management: Adjust EmailHome component for hosting-overview c…
Browse files Browse the repository at this point in the history
…ontext
  • Loading branch information
bogiii committed Jan 10, 2025
1 parent 52aefdf commit 5972465
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/my-sites/email/email-management/email-home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const EmailHome = ( props: EmailManagementHomeProps ) => {
return canCurrentUser( state, selectedSite.ID, 'manage_options' );
} );
const hasSitesLoaded = useSelector( hasLoadedSites );
const isAllDomainManagementContext = context === 'domains';
const isAllDomainManagementContext = context === 'domains' || context === 'hosting-overview';

const addEmailForwardMutationActive = useAddEmailForwardMutationIsLoading();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { EmailAccount, Mailbox } from 'calypso/data/emails/types';
import type { ResponseDomain } from 'calypso/lib/domains/types';

type Props = {
context: 'domains' | 'email';
context: 'domains' | 'email' | 'hosting-overview';
domain: ResponseDomain;
account: EmailAccount;
mailboxes: Mailbox[];
Expand Down Expand Up @@ -101,7 +101,7 @@ function EmailPlanMailboxesList( {
/>
{ context === 'email' && <EmailForwardSecondaryDetails mailbox={ mailbox } /> }
</div>
{ context === 'domains' && (
{ ( context === 'domains' || context === 'hosting-overview' ) && (
<div className="email-plan-mailboxes-list__mailbox-list-item-main">
<EmailForwardSecondaryDetails
mailbox={ mailbox }
Expand Down Expand Up @@ -156,6 +156,7 @@ function EmailPlanMailboxesList( {
// Rendering based on the context
switch ( context ) {
case 'domains':
case 'hosting-overview':
return (
<>
{ ( isGoogleConfiguring || isAccountWarningPresent ) && (
Expand Down

0 comments on commit 5972465

Please sign in to comment.