[PE mobile] Correct disabling toolbar

This commit is contained in:
SergeyEzhin 2022-11-28 11:44:53 +04:00
parent f39be5e139
commit dac85d6d0e

View file

@ -126,19 +126,17 @@ class MainPage extends Component {
{!this.state.previewVisible ? null : <Preview onclosed={this.handleOptionsViewClosed.bind(this, 'preview')} />}
<Page name="home" className={`editor${ showLogo ? ' page-with-logo' : ''}`}>
{/* Top Navbar */}
{config?.customization &&
<Navbar id='editor-navbar'
className={`main-navbar${(!isBranding && showLogo) ? ' navbar-with-logo' : ''}`}>
{(!isBranding && showLogo) && <div className="main-logo" onClick={() => {
window.open(`${__PUBLISHER_URL__}`, "_blank");
}}><Icon icon="icon-logo"></Icon></div>}
<Subnavbar>
<Toolbar openOptions={this.handleClickToOpenOptions}
closeOptions={this.handleOptionsViewClosed}/>
<Search useSuspense={false}/>
</Subnavbar>
</Navbar>
}
<Navbar id='editor-navbar'
className={`main-navbar${(!isBranding && showLogo) ? ' navbar-with-logo' : ''}`}>
{(!isBranding && showLogo) && <div className="main-logo" onClick={() => {
window.open(`${__PUBLISHER_URL__}`, "_blank");
}}><Icon icon="icon-logo"></Icon></div>}
<Subnavbar>
<Toolbar openOptions={this.handleClickToOpenOptions}
closeOptions={this.handleOptionsViewClosed}/>
<Search useSuspense={false}/>
</Subnavbar>
</Navbar>
{/* Page content */}
<View id="editor_sdk" />