mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
remove unnecessary extra bool check for cobranding (#4368)
GitOrigin-RevId: 3f1c6b03030d7fd59be802053f6bcf49e919e0ea
This commit is contained in:
parent
296ce0e460
commit
d2f5509fed
2 changed files with 3 additions and 4 deletions
|
@ -43,9 +43,9 @@ const ToolbarHeader = React.memo(function ToolbarHeader({
|
||||||
<header className="toolbar toolbar-header toolbar-with-labels">
|
<header className="toolbar toolbar-header toolbar-with-labels">
|
||||||
<div className="toolbar-left">
|
<div className="toolbar-left">
|
||||||
<MenuButton onClick={onShowLeftMenuClick} />
|
<MenuButton onClick={onShowLeftMenuClick} />
|
||||||
{cobranding &&
|
{cobranding && cobranding.logoImgUrl && (
|
||||||
cobranding.isProjectCobranded &&
|
<CobrandingLogo {...cobranding} />
|
||||||
cobranding.logoImgUrl && <CobrandingLogo {...cobranding} />}
|
)}
|
||||||
<BackToProjectsButton />
|
<BackToProjectsButton />
|
||||||
</div>
|
</div>
|
||||||
{pdfButtonIsVisible && (
|
{pdfButtonIsVisible && (
|
||||||
|
|
|
@ -29,7 +29,6 @@ describe('<ToolbarHeader />', function () {
|
||||||
const props = {
|
const props = {
|
||||||
...defaultProps,
|
...defaultProps,
|
||||||
cobranding: {
|
cobranding: {
|
||||||
isProjectCobranded: true,
|
|
||||||
brandVariationHomeUrl: 'http://cobranding',
|
brandVariationHomeUrl: 'http://cobranding',
|
||||||
brandVariationName: 'variation',
|
brandVariationName: 'variation',
|
||||||
logoImgUrl: 'http://cobranding/logo',
|
logoImgUrl: 'http://cobranding/logo',
|
||||||
|
|
Loading…
Reference in a new issue