feat: make policy banner configurable (#707)

This commit is contained in:
Zainab Amir
2022-12-14 00:57:37 +05:00
committed by GitHub
parent 70000aab75
commit 59c2c2fd5d
2 changed files with 3 additions and 1 deletions

1
.env
View File

@@ -31,3 +31,4 @@ ZENDESK_KEY=''
ZENDESK_LOGO_URL=''
APP_ID=''
MFE_CONFIG_API_URL=''
ENABLE_COOKIE_POLICY_BANNER=''

View File

@@ -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';
@@ -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}>