Hide tab behind the feature flag
[MAILPOET-3763]
This commit is contained in:
@@ -45,6 +45,7 @@ const trackTabSwitch = (tabKey) => MailPoet.trackEvent(
|
|||||||
|
|
||||||
const Tabs = withNpsPoll(() => {
|
const Tabs = withNpsPoll(() => {
|
||||||
const { parentId } = useParams();
|
const { parentId } = useParams();
|
||||||
|
const { features } = React.useContext(GlobalContext);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ListingHeadingDisplay>
|
<ListingHeadingDisplay>
|
||||||
@@ -85,6 +86,7 @@ const Tabs = withNpsPoll(() => {
|
|||||||
: <NewsletterListNotification />
|
: <NewsletterListNotification />
|
||||||
}
|
}
|
||||||
</Tab>
|
</Tab>
|
||||||
|
{(features.isSupported('re-engagement-email')) && (
|
||||||
<Tab
|
<Tab
|
||||||
key="re_engagement"
|
key="re_engagement"
|
||||||
route="re_engagement/(.*)?"
|
route="re_engagement/(.*)?"
|
||||||
@@ -93,6 +95,7 @@ const Tabs = withNpsPoll(() => {
|
|||||||
>
|
>
|
||||||
<NewsletterListReEngagement />
|
<NewsletterListReEngagement />
|
||||||
</Tab>
|
</Tab>
|
||||||
|
)}
|
||||||
{window.mailpoet_woocommerce_active && _.map(automaticEmails, (email) => (
|
{window.mailpoet_woocommerce_active && _.map(automaticEmails, (email) => (
|
||||||
<Tab
|
<Tab
|
||||||
key={email.slug}
|
key={email.slug}
|
||||||
|
Reference in New Issue
Block a user