Replace old advanced tab with the new one

This commit is contained in:
Amine Ben hammou
2020-03-20 04:27:35 +01:00
committed by Veljko V
parent 540bdba941
commit d6ac430a0e
3 changed files with 9 additions and 6 deletions

View File

@@ -62,6 +62,9 @@ if (jQuery('#mailpoet_settings').length > 0) {
if (tab === 'signup') {
window.location.href = '?page=mailpoet-new-settings#/signup';
}
if (tab === 'advanced') {
window.location.href = '?page=mailpoet-new-settings#/advanced';
}
// reset all active tabs
jQuery('.nav-tab-wrapper a').removeClass('nav-tab-active');

View File

@@ -41,13 +41,13 @@ export default () => {
{t('wooCommerceTab')}
</TabLink>
)}
<a
className="nav-tab"
href="?page=mailpoet-settings#advanced"
data-automation-id="settings-advanced-tab"
<TabLink
name="advanced"
current={current}
automationId="settings-advanced-tab"
>
{t('advancedTab')}
</a>
</TabLink>
<TabLink
name="premium"
current={current}