summaryrefslogtreecommitdiffstats
path: root/browser/components/newtab/content-src/components/Base/Base.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'browser/components/newtab/content-src/components/Base/Base.jsx')
-rw-r--r--browser/components/newtab/content-src/components/Base/Base.jsx15
1 files changed, 14 insertions, 1 deletions
diff --git a/browser/components/newtab/content-src/components/Base/Base.jsx b/browser/components/newtab/content-src/components/Base/Base.jsx
index 0580267f26..20402b09f5 100644
--- a/browser/components/newtab/content-src/components/Base/Base.jsx
+++ b/browser/components/newtab/content-src/components/Base/Base.jsx
@@ -165,6 +165,7 @@ export class BaseContent extends React.PureComponent {
const { App } = props;
const { initialized, customizeMenuVisible } = App;
const prefs = props.Prefs.values;
+ const { pocketConfig } = prefs;
const isDiscoveryStream =
props.DiscoveryStream.config && props.DiscoveryStream.config.enabled;
@@ -172,6 +173,14 @@ export class BaseContent extends React.PureComponent {
section => section.id !== "topstories"
);
+ let spocMessageVariant = "";
+ if (
+ props.App.locale?.startsWith("en-") &&
+ pocketConfig?.spocMessageVariant === "variant-c"
+ ) {
+ spocMessageVariant = pocketConfig.spocMessageVariant;
+ }
+
const pocketEnabled =
prefs["feeds.section.topstories"] && prefs["feeds.system.topstories"];
const noSectionsEnabled =
@@ -218,6 +227,7 @@ export class BaseContent extends React.PureComponent {
pocketRegion={pocketRegion}
mayHaveSponsoredTopSites={mayHaveSponsoredTopSites}
mayHaveSponsoredStories={mayHaveSponsoredStories}
+ spocMessageVariant={spocMessageVariant}
showing={customizeMenuVisible}
/>
{/* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions*/}
@@ -239,7 +249,10 @@ export class BaseContent extends React.PureComponent {
<div className={`body-wrapper${initialized ? " on" : ""}`}>
{isDiscoveryStream ? (
<ErrorBoundary className="borderless-error">
- <DiscoveryStreamBase locale={props.App.locale} />
+ <DiscoveryStreamBase
+ locale={props.App.locale}
+ mayHaveSponsoredStories={mayHaveSponsoredStories}
+ />
</ErrorBoundary>
) : (
<Sections />