Add <TopBar> to Settings and Help pages
[MAILPOET-3073]
This commit is contained in:
@@ -3,14 +3,14 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
||||||
.mailpoet-top-bar ~ & {
|
#screen-meta-links ~ .wrap .mailpoet-top-bar ~ & {
|
||||||
top: -20px;
|
top: -20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notice ~ &,
|
.notice ~ &,
|
||||||
.error ~ &,
|
.error ~ &,
|
||||||
.mailpoet-subscribers-in-plan ~ & {
|
.mailpoet-subscribers-in-plan ~ & {
|
||||||
top: 0;
|
top: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@include respond-to(small-screen) {
|
@include respond-to(small-screen) {
|
||||||
|
@@ -9,9 +9,11 @@ import { GlobalContext, useGlobalContextValue } from 'context/index.jsx';
|
|||||||
import Notices from 'notices/notices.jsx';
|
import Notices from 'notices/notices.jsx';
|
||||||
import RoutedTabs from '../common/tabs/routed_tabs';
|
import RoutedTabs from '../common/tabs/routed_tabs';
|
||||||
import Tab from '../common/tabs/tab';
|
import Tab from '../common/tabs/tab';
|
||||||
|
import { TopBar } from '../common/top_bar/top_bar';
|
||||||
|
|
||||||
const App = () => (
|
const App = () => (
|
||||||
<GlobalContext.Provider value={useGlobalContextValue(window)}>
|
<GlobalContext.Provider value={useGlobalContextValue(window)}>
|
||||||
|
<TopBar />
|
||||||
<Notices />
|
<Notices />
|
||||||
<RoutedTabs activeKey="knowledgeBase">
|
<RoutedTabs activeKey="knowledgeBase">
|
||||||
<Tab key="knowledgeBase" title={MailPoet.I18n.t('tabKnowledgeBaseTitle')}>
|
<Tab key="knowledgeBase" title={MailPoet.I18n.t('tabKnowledgeBaseTitle')}>
|
||||||
|
@@ -5,6 +5,7 @@ import Loading from 'common/loading';
|
|||||||
import { t } from 'common/functions';
|
import { t } from 'common/functions';
|
||||||
import RoutedTabs from 'common/tabs/routed_tabs';
|
import RoutedTabs from 'common/tabs/routed_tabs';
|
||||||
import Tab from 'common/tabs/tab';
|
import Tab from 'common/tabs/tab';
|
||||||
|
import { TopBar } from 'common/top_bar/top_bar';
|
||||||
import {
|
import {
|
||||||
Advanced,
|
Advanced,
|
||||||
Basics,
|
Basics,
|
||||||
@@ -27,9 +28,9 @@ export default function Settings() {
|
|||||||
const hasWooCommerce = useSelector('hasWooCommerce')();
|
const hasWooCommerce = useSelector('hasWooCommerce')();
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<TopBar />
|
||||||
{isSaving && <Loading />}
|
{isSaving && <Loading />}
|
||||||
<Notices />
|
<Notices />
|
||||||
<h1 className="title">{t('settings')}</h1>
|
|
||||||
<RoutedTabs activeKey="basics" onSwitch={(tabKey: string) => trackTabSwitched(tabKey)}>
|
<RoutedTabs activeKey="basics" onSwitch={(tabKey: string) => trackTabSwitched(tabKey)}>
|
||||||
<Tab key="basics" title={t('basicsTab')} automationId="basic_settings_tab">
|
<Tab key="basics" title={t('basicsTab')} automationId="basic_settings_tab">
|
||||||
<Basics />
|
<Basics />
|
||||||
|
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
<% 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">
|
||||||
|
Reference in New Issue
Block a user