Skip to content

Commit

Permalink
test: fix quality
Browse files Browse the repository at this point in the history
  • Loading branch information
DawoudSheraz committed Dec 20, 2024
1 parent 280b74d commit b4ec748
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/containers/MainApp/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@ const MainApp = () => (
<div>
<Header />
{/* Only display the banner if there is content to display. */}
{process.env.SITEWIDE_BANNER_CONTENT &&
<SitewideBanner
message={process.env.SITEWIDE_BANNER_CONTENT}
type="warning"
dismissible
cookieName="publisherSiteWideBannerDismissed"
cookieExpiryDays={30}
/>
}
{process.env.SITEWIDE_BANNER_CONTENT && <SitewideBanner // eslint-disable-line react/jsx-wrap-multilines
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 b4ec748

Please sign in to comment.