Skip to content

Commit

Permalink
[DE PE SSE mobile] Remove unnecessary checks
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyEzhin committed Mar 6, 2024
1 parent 258d335 commit 4d24093
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions apps/documenteditor/mobile/src/page/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,13 @@ const MainPage = inject('storeDocumentInfo', 'users', 'storeAppOptions', 'storeV
showPanels: state.addShowOptions,
isBranding
}}>
<Page name="home" className={`editor${!isHideLogo || !isBranding ? ' page-with-logo' : ''}`}>
<Navbar id='editor-navbar' className={`main-navbar${!isHideLogo || !isBranding ? ' navbar-with-logo' : ''}`}>
{!isHideLogo || !isBranding ?
<Page name="home" className={`editor${!isHideLogo ? ' page-with-logo' : ''}`}>
<Navbar id='editor-navbar' className={`main-navbar${!isHideLogo ? ' navbar-with-logo' : ''}`}>
{!isHideLogo ?
<div className="main-logo" onClick={() => {
window.open(`${customLogoImage && customLogoUrl && !isHideLogo ? customLogoUrl : __PUBLISHER_URL__}`, "_blank");
window.open(`${customLogoImage && customLogoUrl ? customLogoUrl : __PUBLISHER_URL__}`, "_blank");
}}>
{customLogoImage && !isHideLogo ?
{customLogoImage ?
<img className='custom-logo-image' src={customLogoImage} />
:
<Icon icon="icon-logo"></Icon>
Expand Down
10 changes: 5 additions & 5 deletions apps/presentationeditor/mobile/src/page/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ class MainPage extends Component {
{!this.state.previewVisible ? null :
<Preview closeOptions={this.handleOptionsViewClosed.bind(this)} />
}
<Page name="home" className={`editor${!isHideLogo || !isBranding ? ' page-with-logo' : ''}`}>
<Page name="home" className={`editor${!isHideLogo ? ' page-with-logo' : ''}`}>
{/* Top Navbar */}
<Navbar id='editor-navbar' className={`main-navbar${!isHideLogo || !isBranding ? ' navbar-with-logo' : ''}`}>
{!isHideLogo || !isBranding ?
<Navbar id='editor-navbar' className={`main-navbar${!isHideLogo ? ' navbar-with-logo' : ''}`}>
{!isHideLogo ?
<div className="main-logo" onClick={() => {
window.open(`${customLogoImage && customLogoUrl && !isHideLogo ? customLogoUrl : __PUBLISHER_URL__}`, "_blank");
window.open(`${customLogoImage && customLogoUrl ? customLogoUrl : __PUBLISHER_URL__}`, "_blank");
}}>
{customLogoImage && !isHideLogo ?
{customLogoImage ?
<img className='custom-logo-image' src={customLogoImage} />
:
<Icon icon="icon-logo"></Icon>
Expand Down
10 changes: 5 additions & 5 deletions apps/spreadsheeteditor/mobile/src/page/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,14 @@ class MainPage extends Component {
wsProps,
isBranding
}}>
<Page name="home" className={`editor${!isHideLogo || !isBranding ? ' page-with-logo' : ''}`}>
<Page name="home" className={`editor${!isHideLogo ? ' page-with-logo' : ''}`}>
{/* Top Navbar */}
<Navbar id='editor-navbar' className={`main-navbar${!isHideLogo || !isBranding ? ' navbar-with-logo' : ''}`}>
{!isHideLogo || !isBranding ?
<Navbar id='editor-navbar' className={`main-navbar${!isHideLogo ? ' navbar-with-logo' : ''}`}>
{!isHideLogo ?
<div className="main-logo" onClick={() => {
window.open(`${customLogoImage && customLogoUrl && !isHideLogo ? customLogoUrl : __PUBLISHER_URL__}`, "_blank");
window.open(`${customLogoImage && customLogoUrl ? customLogoUrl : __PUBLISHER_URL__}`, "_blank");
}}>
{customLogoImage && !isHideLogo ?
{customLogoImage ?
<img className='custom-logo-image' src={customLogoImage} />
:
<Icon icon="icon-logo"></Icon>
Expand Down

0 comments on commit 4d24093

Please sign in to comment.