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:
Pavel Dohnal
2017-07-03 09:08:26 +01:00
parent 17584dde43
commit ee0e3ff95e
3 changed files with 2 additions and 7 deletions

View File

@@ -7,9 +7,6 @@ function KnowledgeBase() {
return ( return (
<div> <div>
<h1 className="title">
{MailPoet.I18n.t('pageTitle')}
</h1>
<Tabs tab="knowledgeBase" /> <Tabs tab="knowledgeBase" />

View File

@@ -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" />

View File

@@ -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:'),