Skip to content

Commit

Permalink
feat: make policy banner configurable (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
zainab-amir authored and arbrandes committed Dec 19, 2022
1 parent 8549bf2 commit 4ae9ead
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ ZENDESK_KEY=''
ZENDESK_LOGO_URL=''
APP_ID=''
MFE_CONFIG_API_URL=''
ENABLE_COOKIE_POLICY_BANNER=''
3 changes: 2 additions & 1 deletion src/base-component/BaseComponent.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';

import CookiePolicyBanner from '@edx/frontend-component-cookie-policy-banner';
import { getConfig } from '@edx/frontend-platform';
import { getAuthenticatedUser } from '@edx/frontend-platform/auth';
import { getLocale } from '@edx/frontend-platform/i18n';
import { breakpoints } from '@edx/paragon';
Expand All @@ -21,7 +22,7 @@ const BaseComponent = ({ children, showWelcomeBanner }) => {

return (
<>
<CookiePolicyBanner languageCode={getLocale()} />
{getConfig().ENABLE_COOKIE_POLICY_BANNER ? <CookiePolicyBanner languageCode={getLocale()} /> : null}
<div className="col-md-12 extra-large-screen-top-stripe" />
<div className="layout">
<MediaQuery maxWidth={breakpoints.small.maxWidth - 1}>
Expand Down

0 comments on commit 4ae9ead

Please sign in to comment.