mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
remove unnecessary extra bool check for cobranding (#4368)
GitOrigin-RevId: 3f1c6b03030d7fd59be802053f6bcf49e919e0ea
This commit is contained in:
@@ -43,9 +43,9 @@ const ToolbarHeader = React.memo(function ToolbarHeader({
|
||||
<header className="toolbar toolbar-header toolbar-with-labels">
|
||||
<div className="toolbar-left">
|
||||
<MenuButton onClick={onShowLeftMenuClick} />
|
||||
{cobranding &&
|
||||
cobranding.isProjectCobranded &&
|
||||
cobranding.logoImgUrl && <CobrandingLogo {...cobranding} />}
|
||||
{cobranding && cobranding.logoImgUrl && (
|
||||
<CobrandingLogo {...cobranding} />
|
||||
)}
|
||||
<BackToProjectsButton />
|
||||
</div>
|
||||
{pdfButtonIsVisible && (
|
||||
|
||||
@@ -29,7 +29,6 @@ describe('<ToolbarHeader />', function () {
|
||||
const props = {
|
||||
...defaultProps,
|
||||
cobranding: {
|
||||
isProjectCobranded: true,
|
||||
brandVariationHomeUrl: 'http://cobranding',
|
||||
brandVariationName: 'variation',
|
||||
logoImgUrl: 'http://cobranding/logo',
|
||||
|
||||
Reference in New Issue
Block a user