Always use MarketingOverviewMultichannel for marketing page.
This commit is contained in:
parent
189460417c
commit
4f7705f691
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue