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:
mgabdev
2020-10-30 12:57:20 -05:00
parent 04cf1ad7ce
commit 73e1584d43
8 changed files with 5 additions and 23 deletions

View File

@@ -79,7 +79,7 @@ class AboutLayout extends React.PureComponent {
{
me &&
<DefaultNavigationBar title={title} noSearch />
<DefaultNavigationBar title={title} />
}
{
!me &&

View File

@@ -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,
}

View File

@@ -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,
}

View File

@@ -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(' ')}>