Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav committed Aug 26, 2024
1 parent 80703a1 commit f0bb3c7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions frontend/public/src/components/CourseInfoBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ export default class CourseInfoBox extends React.PureComponent<CourseInfoBoxProp
}

warningMessage(run) {
const message = run && run.is_archived ?
"This course is no longer active, but you can still access selected content." :
"No sessions of this course are currently open for enrollment. More sessions may be added in the future."
const message =
run && run.is_archived ?
"This course is no longer active, but you can still access selected content." :
"No sessions of this course are currently open for enrollment. More sessions may be added in the future."
return (
<div className="row d-flex callout callout-warning course-status-message">
<i className="material-symbols-outlined warning">error</i>
Expand Down Expand Up @@ -188,9 +189,7 @@ export default class CourseInfoBox extends React.PureComponent<CourseInfoBoxProp
return (
<>
<div className="enrollment-info-box componentized">
{!run || run.is_archived ?
this.warningMessage(run) :
null}
{!run || run.is_archived ? this.warningMessage(run) : null}
{run ? (
<div className="row d-flex course-timing-message">
<div className="enrollment-info-icon">
Expand Down

0 comments on commit f0bb3c7

Please sign in to comment.