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 (
|
||||
<div>
|
||||
<h1 className="title">
|
||||
{MailPoet.I18n.t('pageTitle')}
|
||||
</h1>
|
||||
|
||||
<Tabs tab="knowledgeBase" />
|
||||
|
||||
|
@@ -32,9 +32,6 @@ function KnowledgeBase() {
|
||||
const data = window.help_scout_data;
|
||||
return (
|
||||
<div>
|
||||
<h1 className="title">
|
||||
{MailPoet.I18n.t('pageTitle')}
|
||||
</h1>
|
||||
|
||||
<Tabs tab="systemInfo" />
|
||||
|
||||
|
@@ -2,6 +2,8 @@
|
||||
|
||||
<% block content %>
|
||||
|
||||
<h1 class="title"><%= __('Help') %></h1>
|
||||
|
||||
<div id="mailpoet_help">
|
||||
|
||||
<script type="text/javascript">
|
||||
@@ -15,7 +17,6 @@
|
||||
<% endblock %>
|
||||
<% block translations %>
|
||||
<%= localize({
|
||||
'pageTitle': __('Help'),
|
||||
'tabKnowledgeBaseTitle': __('Knowledge Base'),
|
||||
'tabSystemInfoTitle': __('System Info'),
|
||||
'knowledgeBaseIntro': __('Click on one of these categories below to find more information:'),
|
||||
|
Reference in New Issue
Block a user