Move <h1> from react
Wordpress moves admin notices bellow the first heading. If we re-render our heading inside react router we remove those notices. This way the admin notice stays in the page. [MAILPOET-949]
This commit is contained in:
@@ -7,9 +7,6 @@ function KnowledgeBase() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h1 className="title">
|
|
||||||
{MailPoet.I18n.t('pageTitle')}
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<Tabs tab="knowledgeBase" />
|
<Tabs tab="knowledgeBase" />
|
||||||
|
|
||||||
|
@@ -32,9 +32,6 @@ function KnowledgeBase() {
|
|||||||
const data = window.help_scout_data;
|
const data = window.help_scout_data;
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h1 className="title">
|
|
||||||
{MailPoet.I18n.t('pageTitle')}
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<Tabs tab="systemInfo" />
|
<Tabs tab="systemInfo" />
|
||||||
|
|
||||||
|
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
<% block content %>
|
<% block content %>
|
||||||
|
|
||||||
|
<h1 class="title"><%= __('Help') %></h1>
|
||||||
|
|
||||||
<div id="mailpoet_help">
|
<div id="mailpoet_help">
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
@@ -15,7 +17,6 @@
|
|||||||
<% endblock %>
|
<% endblock %>
|
||||||
<% block translations %>
|
<% block translations %>
|
||||||
<%= localize({
|
<%= localize({
|
||||||
'pageTitle': __('Help'),
|
|
||||||
'tabKnowledgeBaseTitle': __('Knowledge Base'),
|
'tabKnowledgeBaseTitle': __('Knowledge Base'),
|
||||||
'tabSystemInfoTitle': __('System Info'),
|
'tabSystemInfoTitle': __('System Info'),
|
||||||
'knowledgeBaseIntro': __('Click on one of these categories below to find more information:'),
|
'knowledgeBaseIntro': __('Click on one of these categories below to find more information:'),
|
||||||
|
Reference in New Issue
Block a user