Updated some pages and layouts for navigation noSearch and showBackBtn
• Updated: - some pages and layouts for navigation noSearch and showBackBtn
This commit is contained in:
parent
04cf1ad7ce
commit
73e1584d43
|
@ -79,7 +79,7 @@ class AboutLayout extends React.PureComponent {
|
|||
|
||||
{
|
||||
me &&
|
||||
<DefaultNavigationBar title={title} noSearch />
|
||||
<DefaultNavigationBar title={title} />
|
||||
}
|
||||
{
|
||||
!me &&
|
||||
|
|
|
@ -15,7 +15,6 @@ class DefaultLayout extends React.PureComponent {
|
|||
showBackBtn,
|
||||
tabs,
|
||||
title,
|
||||
noSearch,
|
||||
} = this.props
|
||||
|
||||
return (
|
||||
|
@ -28,7 +27,6 @@ class DefaultLayout extends React.PureComponent {
|
|||
showBackBtn={showBackBtn}
|
||||
tabs={tabs}
|
||||
title={title}
|
||||
noSearch={noSearch}
|
||||
>
|
||||
{children}
|
||||
</Layout>
|
||||
|
@ -45,7 +43,6 @@ DefaultLayout.propTypes = {
|
|||
noRightSidebar: PropTypes.bool,
|
||||
page: PropTypes.string,
|
||||
showBackBtn: PropTypes.bool,
|
||||
noSearch: PropTypes.bool,
|
||||
tabs: PropTypes.array,
|
||||
title: PropTypes.string.isRequired,
|
||||
}
|
||||
|
|
|
@ -38,7 +38,6 @@ class Layout extends React.PureComponent {
|
|||
showGlobalFooter,
|
||||
tabs,
|
||||
title,
|
||||
noSearch,
|
||||
} = this.props
|
||||
|
||||
const mainBlockClasses = CX({
|
||||
|
@ -64,7 +63,6 @@ class Layout extends React.PureComponent {
|
|||
tabs={tabs}
|
||||
title={title}
|
||||
showBackBtn={showBackBtn}
|
||||
noSearch={noSearch}
|
||||
/>
|
||||
}
|
||||
{
|
||||
|
@ -177,7 +175,6 @@ Layout.propTypes = {
|
|||
showBackBtn: PropTypes.bool,
|
||||
showLinkFooterInSidebar: PropTypes.bool,
|
||||
showGlobalFooter: PropTypes.bool,
|
||||
noSearch: PropTypes.bool,
|
||||
tabs: PropTypes.array,
|
||||
title: PropTypes.string,
|
||||
}
|
||||
|
|
|
@ -37,10 +37,7 @@ class SettingsLayout extends React.PureComponent {
|
|||
<WrappedBundle component={SidebarXS} />
|
||||
</Responsive>
|
||||
|
||||
<DefaultNavigationBar
|
||||
title={title}
|
||||
noSearch
|
||||
/>
|
||||
<DefaultNavigationBar title={title} showBackBtn />
|
||||
|
||||
<div className={[_s.d, _s.flexRow, _s.w100PC].join(' ')}>
|
||||
|
||||
|
|
|
@ -71,7 +71,6 @@ class GroupsPage extends React.PureComponent {
|
|||
|
||||
return (
|
||||
<DefaultLayout
|
||||
noSearch
|
||||
title={title}
|
||||
actions={[
|
||||
{
|
||||
|
|
|
@ -52,7 +52,6 @@ class NotificationsPage extends React.PureComponent {
|
|||
|
||||
return (
|
||||
<DefaultLayout
|
||||
noSearch
|
||||
title={title}
|
||||
page='notifications'
|
||||
layout={[
|
||||
|
|
|
@ -5,17 +5,10 @@ import SettingsLayout from '../layouts/settings_layout'
|
|||
class SettingsPage extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const {
|
||||
children,
|
||||
tabs,
|
||||
title,
|
||||
} = this.props
|
||||
const { children, title } = this.props
|
||||
|
||||
return (
|
||||
<SettingsLayout
|
||||
title={title}
|
||||
tabs={tabs}
|
||||
>
|
||||
<SettingsLayout title={title}>
|
||||
{children}
|
||||
</SettingsLayout>
|
||||
)
|
||||
|
@ -25,7 +18,6 @@ class SettingsPage extends React.PureComponent {
|
|||
|
||||
SettingsPage.propTypes = {
|
||||
children: PropTypes.node.isRequired,
|
||||
tabs: PropTypes.array,
|
||||
title: PropTypes.string,
|
||||
}
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ class ShortcutsPage extends React.PureComponent {
|
|||
|
||||
return (
|
||||
<DefaultLayout
|
||||
showBackBtn
|
||||
title={title}
|
||||
page='shortcuts'
|
||||
actions={[
|
||||
|
|
Loading…
Reference in New Issue