mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add conditional rendering to CobrandingLogo (#4221)
Co-authored-by: Miguel Serrano <mserranom@gmail.com> GitOrigin-RevId: 033cc5bfdbbd3cc03d11f28f9e2dc0cd6d95b8ff
This commit is contained in:
parent
c370785510
commit
387950b495
2 changed files with 4 additions and 1 deletions
|
@ -39,7 +39,9 @@ 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 ? <CobrandingLogo {...cobranding} /> : null}
|
{cobranding &&
|
||||||
|
cobranding.isProjectCobranded &&
|
||||||
|
cobranding.logoImgUrl && <CobrandingLogo {...cobranding} />}
|
||||||
<BackToProjectsButton />
|
<BackToProjectsButton />
|
||||||
</div>
|
</div>
|
||||||
{pdfButtonIsVisible && (
|
{pdfButtonIsVisible && (
|
||||||
|
|
|
@ -29,6 +29,7 @@ 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