Skip to content

Commit 9140a69

Browse files
committed
feat(majc): add provider
1 parent 6dff201 commit 9140a69

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clients/web/src/pages/_app.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import { loadPolyfills } from 'common/setup/polyfills'
3535

3636
import { Shortcuts } from 'connectors/shortcuts/shortcuts'
3737
import { DevTools } from 'connectors/dev-tools/dev-tools'
38+
import { MozAdsConfigProvider } from '@mozilla-services/majc/dist/react'
3839

3940
/** App
4041
--------------------------------------------------------------- */
@@ -188,7 +189,9 @@ function AppWithStore({ Component, ...rest }) {
188189
const { store, props } = wrapper.useWrappedStore(rest)
189190
return (
190191
<Provider store={store}>
191-
<PocketWebClient Component={Component} {...props} />
192+
<MozAdsConfigProvider config={{ gppEnabled: true }}>
193+
<PocketWebClient Component={Component} {...props} />
194+
</MozAdsConfigProvider>
192195
<ConfirmItemsImport />
193196
</Provider>
194197
)

0 commit comments

Comments
 (0)