Do not show the Updates-button when 3rd parties are not enabled
[MAILPOET-5826]
This commit is contained in:
@@ -6,6 +6,7 @@ import { MailPoetLogoResponsive } from './mailpoet-logo-responsive';
|
|||||||
import { BeamerIcon } from './beamer-icon';
|
import { BeamerIcon } from './beamer-icon';
|
||||||
import { ScreenOptionsFix } from './screen-options-fix';
|
import { ScreenOptionsFix } from './screen-options-fix';
|
||||||
import { withBoundary } from '../error-boundary';
|
import { withBoundary } from '../error-boundary';
|
||||||
|
import { MailPoet } from '../../mailpoet';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
children?: ReactNode;
|
children?: ReactNode;
|
||||||
@@ -29,7 +30,7 @@ export function TopBar({
|
|||||||
<MailPoetLogoResponsive withLink={logoWithLink} />
|
<MailPoetLogoResponsive withLink={logoWithLink} />
|
||||||
<div className="mailpoet-top-bar-children">{children}</div>
|
<div className="mailpoet-top-bar-children">{children}</div>
|
||||||
<div className="mailpoet-flex-grow" />
|
<div className="mailpoet-flex-grow" />
|
||||||
{onBeamerClick && (
|
{onBeamerClick && MailPoet.libs3rdPartyEnabled && (
|
||||||
<div>
|
<div>
|
||||||
<a
|
<a
|
||||||
role="button"
|
role="button"
|
||||||
|
Reference in New Issue
Block a user