Skip to content

Commit

Permalink
Add isBusinessOrEcomPlanUser in Calypso only
Browse files Browse the repository at this point in the history
  • Loading branch information
alshakero committed Jun 20, 2024
1 parent 0ec332a commit 03abd41
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ function AdminHelpCenterContent() {
locale={ window.helpCenterData.locale }
sectionName="wp-admin"
currentUserId={ window.helpCenterData.current_user_id }
isBusinessOrEcomPlanUser={ window.helpCenterData.is_business_or_ecommerce_plan_user }
selectedSiteId={ window.helpCenterData.current }
hasPurchases={ false }
primarySiteId={ window.helpCenterData.primary_site_id }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ function HelpCenterContent() {
locale={ window.helpCenterData.locale }
sectionName="gutenberg-editor"
currentUserId={ window.helpCenterData.current_user_id }
isBusinessOrEcomPlanUser={ window.helpCenterData.is_business_or_ecommerce_plan_user }
selectedSiteId={ window.helpCenterData.current }
hasPurchases={ false }
primarySiteId={ window.helpCenterData.primary_site_id }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export const HelpCenterMoreResources = () => {

const trackMoreResourcesButtonClick = ( resource: string ) => {
recordTracksEvent( 'calypso_help_moreresources_click', {
is_business_or_ecommerce_plan_user: isBusinessOrEcomPlanUser,
resource: resource,
force_site_id: true,
location: 'help-center',
Expand Down
4 changes: 2 additions & 2 deletions packages/help-center/src/contexts/HelpCenterContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export type HelpCenterRequiredInformation = {
hasPurchases: boolean;
primarySiteId: number;
getGoogleMailServiceFamily: string;
isBusinessOrEcomPlanUser?: boolean;
onboardingUrl: string;
isJetpackSite: boolean;
adminUrl: string;
isBusinessOrEcomPlanUser: boolean;
};

const HelpCenterRequiredContext = React.createContext< HelpCenterRequiredInformation >( {
Expand All @@ -22,11 +22,11 @@ const HelpCenterRequiredContext = React.createContext< HelpCenterRequiredInforma
selectedSiteId: 0,
hasPurchases: false,
primarySiteId: 0,
isBusinessOrEcomPlanUser: false,
getGoogleMailServiceFamily: '',
onboardingUrl: '',
isJetpackSite: false,
adminUrl: '',
isBusinessOrEcomPlanUser: false,
} );

export const HelpCenterRequiredContextProvider: React.FC< {
Expand Down

0 comments on commit 03abd41

Please sign in to comment.