Skip to content

Commit

Permalink
chore: added back sitewide banner changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AfaqShuaib09 committed Jan 2, 2025
1 parent 3cde854 commit 374b322
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/containers/MainApp/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ import SitewideBanner from '../../components/SitewideBanner';
const MainApp = () => (
<div>
<Header />
{/* Only display the banner if there is content to display. */}
{process.env.SITEWIDE_BANNER_CONTENT && (
<SitewideBanner

Check failure on line 25 in src/containers/MainApp/index.jsx

View workflow job for this annotation

GitHub Actions / tests

Parentheses around JSX should be on separate lines
message={process.env.SITEWIDE_BANNER_CONTENT || ''}
message={process.env.SITEWIDE_BANNER_CONTENT}
type="warning"
dismissible
cookieName="publisherSiteWideBannerDismissed"
cookieExpiryDays={30}
/>
/>)}
<main>
<Routes>
<Route path="/course-runs/:courseRunKey" element={<CourseRunRedirectComponent />} />
Expand Down

0 comments on commit 374b322

Please sign in to comment.