Skip to content

Commit

Permalink
chore: added sitewide banner to main app
Browse files Browse the repository at this point in the history
  • Loading branch information
AfaqShuaib09 committed Dec 19, 2024
1 parent 9579956 commit 39bbaab
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/containers/MainApp/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,19 @@ import EditStaffer from '../EditStaffer';
import CreateCollaborator from '../CreateCollaborator';
import EditCollaborator from '../EditCollaborator';
import EditCourse from '../EditCourse';
import SitewideBanner from '../../components/SitewideBanner';


const MainApp = () => (
<div>
<Header />
<SitewideBanner
message={process.env.SITEWIDE_BANNER_CONTENT || ''}
type="primary"
dismissible
cookieName="sitewidebannerDismissed"
cookieExpiryDays={30}
/>
<main>
<Routes>
<Route path="/course-runs/:courseRunKey" element={<CourseRunRedirectComponent />} />
Expand Down

0 comments on commit 39bbaab

Please sign in to comment.