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