Use the new settings page
[MAILPOET-2677]
This commit is contained in:
committed by
Veljko V
parent
30d9a9c108
commit
70a104a0f8
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useLocation } from 'react-router-dom';
|
import { useLocation } from 'react-router-dom';
|
||||||
import MailPoet from 'mailpoet';
|
|
||||||
import { useSelector } from 'settings/store/hooks';
|
import { useSelector } from 'settings/store/hooks';
|
||||||
|
import { t } from 'settings/utils';
|
||||||
import TabLink from './tab_link';
|
import TabLink from './tab_link';
|
||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
@@ -16,45 +16,45 @@ export default () => {
|
|||||||
current={current}
|
current={current}
|
||||||
automationId="basic_settings_tab"
|
automationId="basic_settings_tab"
|
||||||
>
|
>
|
||||||
{MailPoet.I18n.t('basicsTab')}
|
{t`basicsTab`}
|
||||||
</TabLink>
|
</TabLink>
|
||||||
<TabLink
|
<a
|
||||||
name="signup"
|
className="nav-tab"
|
||||||
current={current}
|
href="?page=mailpoet-settings#signup"
|
||||||
automationId="signup_settings_tab"
|
data-automation-id="signup_settings_tab"
|
||||||
>
|
>
|
||||||
{MailPoet.I18n.t('signupConfirmationTab')}
|
{t`signupConfirmationTab`}
|
||||||
</TabLink>
|
</a>
|
||||||
<TabLink
|
<a
|
||||||
name="mta"
|
className="nav-tab"
|
||||||
current={current}
|
href="?page=mailpoet-settings#mta"
|
||||||
automationId="send_with_settings_tab"
|
data-automation-id="send_with_settings_tab"
|
||||||
>
|
>
|
||||||
{MailPoet.I18n.t('sendWithTab')}
|
{t`sendWithTab`}
|
||||||
</TabLink>
|
</a>
|
||||||
{hasWooCommerce && (
|
{hasWooCommerce && (
|
||||||
<TabLink
|
<a
|
||||||
name="woocommerce"
|
className="nav-tab"
|
||||||
current={current}
|
href="?page=mailpoet-settings#woocommerce"
|
||||||
automationId="woocommerce_settings_tab"
|
data-automation-id="woocommerce_settings_tab"
|
||||||
>
|
>
|
||||||
{MailPoet.I18n.t('wooCommerceTab')}
|
{t`wooCommerceTab`}
|
||||||
</TabLink>
|
</a>
|
||||||
)}
|
)}
|
||||||
<TabLink
|
<a
|
||||||
name="advanced"
|
className="nav-tab"
|
||||||
current={current}
|
href="?page=mailpoet-settings#advanced"
|
||||||
automationId="settings-advanced-tab"
|
data-automation-id="settings-advanced-tab"
|
||||||
>
|
>
|
||||||
{MailPoet.I18n.t('advancedTab')}
|
{t`advancedTab`}
|
||||||
</TabLink>
|
</a>
|
||||||
<TabLink
|
<a
|
||||||
name="premium"
|
className="nav-tab"
|
||||||
current={current}
|
href="?page=mailpoet-settings#premium"
|
||||||
automationId="activation_settings_tab"
|
data-automation-id="activation_settings_tab"
|
||||||
>
|
>
|
||||||
{MailPoet.I18n.t('keyActivationTab')}
|
{t`keyActivationTab`}
|
||||||
</TabLink>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
>
|
>
|
||||||
<!-- tabs -->
|
<!-- tabs -->
|
||||||
<h2 class="nav-tab-wrapper" id="mailpoet_settings_tabs">
|
<h2 class="nav-tab-wrapper" id="mailpoet_settings_tabs">
|
||||||
<a class="nav-tab" href="#basics" data-automation-id="basic_settings_tab"><%= __('Basics') %></a>
|
<a class="nav-tab" href="?page=mailpoet-new-settings#/basics" data-automation-id="basic_settings_tab"><%= __('Basics') %></a>
|
||||||
<a class="nav-tab" href="#signup" data-automation-id="signup_settings_tab"><%= __('Sign-up Confirmation') %></a>
|
<a class="nav-tab" href="#signup" data-automation-id="signup_settings_tab"><%= __('Sign-up Confirmation') %></a>
|
||||||
<a class="nav-tab" href="#mta" data-automation-id="send_with_settings_tab"><%= __('Send With...') %></a>
|
<a class="nav-tab" href="#mta" data-automation-id="send_with_settings_tab"><%= __('Send With...') %></a>
|
||||||
<% if is_woocommerce_active %>
|
<% if is_woocommerce_active %>
|
||||||
|
Reference in New Issue
Block a user