diff --git a/src/ExperimentContext.jsx b/src/ExperimentContext.jsx index fb8a50f1..fcaf566c 100644 --- a/src/ExperimentContext.jsx +++ b/src/ExperimentContext.jsx @@ -24,7 +24,13 @@ export const useCountryCode = (setCountryCode) => { }, []); }; -export const ExperimentContext = React.createContext(); +export const PaintedDoorExperimentContext = React.createContext({ + experimentVariation: '', + isPaintedDoorNavbarBtnVariation: false, + isPaintedDoorWidgetBtnVariation: false, + isPaintedDoorControlVariation: false, + experimentLoading: true, +}); export const ExperimentProvider = ({ children }) => { const [countryCode, setCountryCode] = module.state.countryCode(null); diff --git a/src/containers/LearnerDashboardHeader/CollapsedHeader/CollapseMenuBody.jsx b/src/containers/LearnerDashboardHeader/CollapsedHeader/CollapseMenuBody.jsx index 7ca93b7f..0860b0b0 100644 --- a/src/containers/LearnerDashboardHeader/CollapsedHeader/CollapseMenuBody.jsx +++ b/src/containers/LearnerDashboardHeader/CollapsedHeader/CollapseMenuBody.jsx @@ -6,10 +6,10 @@ import { useIntl } from '@edx/frontend-platform/i18n'; import { AppContext } from '@edx/frontend-platform/react'; import { Button, Badge } from '@edx/paragon'; -// import WidgetNavbar from 'containers/WidgetContainers/WidgetNavbar'; +import WidgetNavbar from 'containers/WidgetContainers/WidgetNavbar'; import urls from 'data/services/lms/urls'; import { reduxHooks } from 'hooks'; -// import { COLLAPSED_NAVBAR } from 'widgets/RecommendationsPaintedDoorBtn/constants'; +import { COLLAPSED_NAVBAR } from 'widgets/RecommendationsPaintedDoorBtn/constants'; import { findCoursesNavDropdownClicked } from '../hooks'; import messages from '../messages'; @@ -40,7 +40,7 @@ export const CollapseMenuBody = ({ isOpen }) => { > {formatMessage(messages.discoverNew)} - {/* */} + diff --git a/src/containers/LearnerDashboardHeader/CollapsedHeader/__snapshots__/CollapseMenuBody.test.jsx.snap b/src/containers/LearnerDashboardHeader/CollapsedHeader/__snapshots__/CollapseMenuBody.test.jsx.snap index c7694e82..7be3396a 100644 --- a/src/containers/LearnerDashboardHeader/CollapsedHeader/__snapshots__/CollapseMenuBody.test.jsx.snap +++ b/src/containers/LearnerDashboardHeader/CollapsedHeader/__snapshots__/CollapseMenuBody.test.jsx.snap @@ -26,6 +26,9 @@ exports[`CollapseMenuBody render 1`] = ` > Discover New + + + diff --git a/src/containers/LearnerDashboardHeader/ExpandedHeader/index.jsx b/src/containers/LearnerDashboardHeader/ExpandedHeader/index.jsx index b2b978ce..250a7756 100644 --- a/src/containers/LearnerDashboardHeader/ExpandedHeader/index.jsx +++ b/src/containers/LearnerDashboardHeader/ExpandedHeader/index.jsx @@ -4,10 +4,10 @@ import { getConfig } from '@edx/frontend-platform'; import { useIntl } from '@edx/frontend-platform/i18n'; import { Button } from '@edx/paragon'; -// import WidgetNavbar from 'containers/WidgetContainers/WidgetNavbar'; +import WidgetNavbar from 'containers/WidgetContainers/WidgetNavbar'; import urls from 'data/services/lms/urls'; import { reduxHooks } from 'hooks'; -// import { EXPANDED_NAVBAR } from 'widgets/RecommendationsPaintedDoorBtn/constants'; +import { EXPANDED_NAVBAR } from 'widgets/RecommendationsPaintedDoorBtn/constants'; import AuthenticatedUserDropdown from './AuthenticatedUserDropdown'; import { useIsCollapsed, findCoursesNavClicked } from '../hooks'; @@ -52,7 +52,7 @@ export const ExpandedHeader = () => { > {formatMessage(messages.discoverNew)} - {/* */} +