Always use MarketingOverviewMultichannel for marketing page.

This commit is contained in:
Gan Eng Chin 2023-03-23 23:19:34 +08:00
parent 189460417c
commit 4f7705f691
No known key found for this signature in database
GPG Key ID: 94D5D972860ADB01
1 changed files with 1 additions and 8 deletions

View File

@ -51,11 +51,6 @@ const Dashboard = lazy( () =>
const Homescreen = lazy( () => const Homescreen = lazy( () =>
import( /* webpackChunkName: "homescreen" */ '../homescreen' ) import( /* webpackChunkName: "homescreen" */ '../homescreen' )
); );
const MarketingOverview = lazy( () =>
import(
/* webpackChunkName: "marketing-overview" */ '../marketing/overview'
)
);
const MarketingOverviewMultichannel = lazy( () => const MarketingOverviewMultichannel = lazy( () =>
import( import(
/* webpackChunkName: "multichannel-marketing" */ '../marketing/overview-multichannel' /* webpackChunkName: "multichannel-marketing" */ '../marketing/overview-multichannel'
@ -157,9 +152,7 @@ export const getPages = () => {
if ( window.wcAdminFeatures.marketing ) { if ( window.wcAdminFeatures.marketing ) {
pages.push( { pages.push( {
container: window.wcAdminFeatures[ 'multichannel-marketing' ] container: MarketingOverviewMultichannel,
? MarketingOverviewMultichannel
: MarketingOverview,
path: '/marketing', path: '/marketing',
breadcrumbs: [ breadcrumbs: [
...initialBreadcrumbs, ...initialBreadcrumbs,